7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Open "c:\1.txt" For Binary As #1
Dim a As String, b() As String
Dim c(2, 4), n As Integer
Dim i As Integer, j As Integer
a = StrConv(InputB(LOF(1), 1), vbUnicode): Close #1
b = Split(a, ",")
For i = 0 To 2
For j = 0 To 4
c(i, j) = b(j + n)
Next
n = n + j
Next
End Sub
dim s as string
dim a() as string
dim result(,) as long
dim i as long
open "c:\dat.txt" for input as #1
s = input(lof(1), 1)
cloase #1
a = split(s, ", ")
'下面看你怎么放置到二维数组了。
'是变成
'1, 2
'3, 4
'5, 6
'...
'么?
'还是什么?
for i = 1 to ubound(a)
...
next