当前位置: 代码迷 >> VFP >> thisform.command(i).visible=.T.该怎么处理
  详细解决方案

thisform.command(i).visible=.T.该怎么处理

热度:1307   发布时间:2013-02-26 00:00:00.0
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
  相关解决方案