如何用VB实现QBASIC中的data数据的read,在QBASIC中可以实现DATA1,2,7,9 然后再read到一个变量中。如果用vb实现,那种方法最简单
Private Sub Command1_Click()
Dim A, B, C, D As Integer
READ A, B, C, D
X = B + D
RESTORE 130
READ A, B, C, D
Y = B + D
RESTORE
For J = 1 To 8
READ A
Print A
Next J
X = X + Y + A: Print X
Data 1, 2, 3
Data 4, 5, 6
Data 7, 8, 9
End
End Sub
Private Sub Command1_Click()
Dim A, B, C, D As Integer
READ A, B, C, D
X = B + D
RESTORE 130
READ A, B, C, D
Y = B + D
RESTORE
For J = 1 To 8
READ A
Print A
Next J
X = X + Y + A: Print X
Data 1, 2, 3
Data 4, 5, 6
Data 7, 8, 9
End
End Sub