如果你的窗口上有所有的PB控件的话,那你要定义全部的控件变量。
以Button控件为例:
找到该控件,并将该控件的enable属性设为false:
commandbutton temp
integer i
for i = 1 to upperbound(w_1.control[])
if w_1.control[i].typeof() = commandbutton! then
temp = w_1.control[i]
temp.enabled = true
end if
next
其他的与此类似,你写一个Case 语句分别判断就可以了
ClassDefinition lcd_1
VariableDefinition lvd_1[]
long ll_j
lcd_1=controlname.ClassDefinition
lvd_1=lcd_1.VariableList
for ll_j=1 to upperbound(lvd_1)
messagebox("",lvd_1[ll_j].name+"的值是"+string(lvd_1[ll_j].initialvalue))
next