有什么例子可以理解理解吗?
或者我有个代码 ,大家看看哪儿错了?
Private Sub Command1_Click()
Picture1.AutoSize = True
Picture1.ScaleMode = 3
Picture1.Picture = LoadPicture("c:\1.bmp")
End Sub
Private Sub Command2_Click()
Dim bool() As Boolean
Dim a() As Long
Dim b() As Long
x = 1
For j = 1 To 1000
If bool(j) = True And x = 1 Then a(z) = j And x = 2 Else
If bool(j) = False And x = 2 Then b(z) = j And x = 1
Next
Print a(z), b(z)
End Sub
Function bool() As Boolean
For i = 1 To 1000
If Picture1.Point(i, j) = 0 Then bool(j) = True
Next
End Function
第40期 Arduino入门爱欧篇 04:boolean