主题:请大家指教一下这段程序!
[u][color=FFFF00]Private Sub Form_Click()[/color][/u]
Dim i As Integer, j As Integer
For i = 1 To 9
Print String(9 * i, "-")
For j = 1 To i
If i * j < 10 Then
Print "|" & i&; "*" & j&; "=" & i * j&; ""
End If
Next j
Next i
End Sub
小妹刚刚接触程序不久,弄了一个小程序,在运行时显示类型-声明字符与声明数据不符,然后就显示最上一行的程序变成了黄色?我想了半天都没搞明白?请大家指教一下
Dim i As Integer, j As Integer
For i = 1 To 9
Print String(9 * i, "-")
For j = 1 To i
If i * j < 10 Then
Print "|" & i&; "*" & j&; "=" & i * j&; ""
End If
Next j
Next i
End Sub
小妹刚刚接触程序不久,弄了一个小程序,在运行时显示类型-声明字符与声明数据不符,然后就显示最上一行的程序变成了黄色?我想了半天都没搞明白?请大家指教一下