VB中怎么将文本框中的内容写入数组中

2024-11-18 16:05:12
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Dim a() As String
a = Split(Text1.Text, ",")
For i = 0 To UBound(a)
Print a(i)
Next
End Sub
意思是:将文本框里面的内容以","(逗号)处隔开!!输出到窗体上