VB中代码问题
Dim ww As IntegerDim hh As Integer
ww = Text9.Text
hh = Text10.Text
For i = 1 To hh
For j = 1 To ww
Get #1, , a(i, j)
a(i, j) = a(i, j) - 48
Next j
Get #1, , j
If j <> 13 Then
MsgBox "源文件“" & fname & "”格式不正确或与要求不符", , "提示"
Beep
Close #1
GoTo err_handle
End If
Get #1, , j
If j <> 10 Then
MsgBox "源文件“" & fname & "”格式不正确或与要求不符", , "提示"
Beep
Close #1
GoTo err_handle
End If
Next i
Close #1
帮我详细讲解下每句代码的大概意思,谢谢啦
追问:CommonDialog1.ShowOpen
fname = CommonDialog1.FileName
If fname = "" Then GoTo err_handle
Open fname For Random As #1 Len = 2 这些你能懂一些吗?先谢谢你啊