把lbl的index属性设为0for intcount =1 to 3
load lbl(intcount)
lbl(intcount).visible=true
lbl(intcount).caption=intcount
lbl(intcount).top=500+intcount * 300
lbl(intcount).left=100
lbl(intcount).height=270
lbl(intcount).weight=1000
next要先load,再把visible设为true
load lbl(intcount)
lbl(intcount).visible=true
lbl(intcount).caption=intcount
lbl(intcount).top=500+intcount * 300
lbl(intcount).left=100
lbl(intcount).height=270
lbl(intcount).weight=1000
next要先load,再把visible设为true
在 load时!?!?!
Dim intCount As Integer
For intCount = 1 To 3
Load (lbl(intCount))’这里出现不匹配。
lblArray(intCount).Visible = True
lblArray(intCount).Left = intCount * 100 + 100
lblArray(intCount).Top = 200
lblArray(intCount).Caption = intCount
Next
???????????
并且lbl的index属性为0
后面不要用lblarray,还是lbl。
load lbl(intcount) 不是 load(lbl(intcount))。
是lbl(intcount).Width 不是 lbl(intcount).weight
dim i as ingteger
for i=1 to 3
load label(1)
label(1).Visible = True
label(1).Left = label(0).left
label(1).Top = label(0).top + label(0).height+50
next
你的程序如没有报错,应该是top属性没设置,默认为label(0)的top 和 left.