$s = 1
$x = 10
$y = 16
For $i = 1 to 8
$Checkbox[$s] = GUICtrlCreateCheckbox("Checkbox" & $i & "", $x, $y, 97, 17)
$y = $y + 32
For $i1 = 1 to 8
$Checkbox[$s] = GUICtrlCreateCheckbox("Checkbox" & $i & "", $x+120, $y-32, 97, 17)
For $i2 = 1 to 8
$Checkbox[$s] = GUICtrlCreateCheckbox("Checkbox" & $i & "", $x+250, $y-32, 97, 17)
Next
Next
$x = 10
$s = $s + 1
Next
去掉$s变量可以正常运行。但怎么加了$s就无法运行了。提示$Checkbox possibly not declared/created yet。
生成出来都是Checkbox1……8这个名称,怎么改?如:Checkbox1“改成”123,Checkbox2“改成”签名,Checkbox3“改成”sd123 |