读书人

thisform.command(i).visible=.T.该怎

发布时间: 2012-02-14 19:19:19 作者: rapoo

thisform.command(i).visible=.T.
thisform.command(1).visible=.T.
thisform.command(2).visible=.T.
thisform.command(3).visible=.T.
thisform.command(4).visible=.T.
thisform.command(5).visible=.T.
thisform.command(6).visible=.T.
thisform.command(7).visible=.T.
....
thisform.command(150).visible=.T.

我这么就要写150行

能否有个简单的代码写法?


[解决办法]
FOR i=1 TO 2
j=TRANSFORM(i)
thisform.command&j..visible=.t.
ENDFOR

读书人网 >VFP

热点推荐