发现一个比较尴尬的东西 求解释?
各位看几段代码先
程序代码:Define Class xx as Container
For i = 1 to 9
Add Object oo as CommandButton With
。。。。。
EndFor
EndDefine 报错: for循环不能直接用于类定义?。。。
程序代码:Define Class xx as Container
Procedure Init
For i = 1 to 9
Add Object oo as CommandButton With
。。。。。
EndFor
EndProc
EndDefine 报错: add object 不能用于过程中?。。。我很想用一个循环来达到几个 ADD OBJECT XX AS OO 的效果 有什么折中的办法?







