vb 数据库 数组
PrivateSubCommand1_Click()Print"随机输入的数据"n=0DimsAsStringDoWhileb=0n=n+1ReDimPreservea(...
Private Sub Command1_Click()
Print "随机输入的数据"
n = 0
Dim s As String
Do While b = 0
n = n + 1
ReDim Preserve a(n) As Integer
s = InputBox("输入数据")
If s = "" Then
n = n - 1
Exit Do
Else
a(n - 1) = s
End If
Loop
Call paixu(a(), n)
For i = 0 To n - 1
Print a(i); " ";
Next i
End Sub
哪错拉 展开
Print "随机输入的数据"
n = 0
Dim s As String
Do While b = 0
n = n + 1
ReDim Preserve a(n) As Integer
s = InputBox("输入数据")
If s = "" Then
n = n - 1
Exit Do
Else
a(n - 1) = s
End If
Loop
Call paixu(a(), n)
For i = 0 To n - 1
Print a(i); " ";
Next i
End Sub
哪错拉 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询