vb.net 数组定义和赋值

2024-11-15 11:33:25
推荐回答(1个)
回答(1):

Dim S As String()
Dim j As Integer = 9
ReDim S(j)
For i = 0 To j
S(i) = i
Next

注: 指定数组上限才能对其赋值