dim intCycle as integerfor intcycle=1 to 10 Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle) chk.left=100 chk.Top=100*intcycle chk.visible=True next
dim chk as control dim intcycle as integerfor intcycle=1 to 10 Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle) chk.left=100 chk.Top=100*intcycle chk.visible=True next
dim chk as control dim intcycle as integerfor intcycle=1 to 10 Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle) chk.left=100 chk.Top=500*intcycle chk.visible=True next
例:
chk.Top=变量
Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle)
chk.left=100
chk.Top=100*intcycle
chk.visible=True
next
dim intcycle as integerfor intcycle=1 to 10
Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle)
chk.left=100
chk.Top=100*intcycle
chk.visible=True
next
dim intcycle as integerfor intcycle=1 to 10
Set chk = Controls.Add("vb.CheckBox", "chkName" & intcycle)
chk.left=100
chk.Top=500*intcycle
chk.visible=True
next