Hi MK,
you have to put 2 points after the "&"
thisform.&zc..enabled
do something like
LOCAL txt
FOR ixi = 1 TO 6
txt = "command"+ALLTRIM(TRANSFORM(ixi))
thisform.&txt..enabled=.f.
endfor
HTH
franco
>how i can do the below command :
>
>public zc
>zc="command"
>
>in the click event of command button i want to write like below :
>
>thisform.&zc1.enabled=.f.
>thisform.&zc2.enabled=.f.
>thisform.&zc3.enabled=.f.
>thisform.&zc4.enabled=.f.
>thisform.&zc5.enabled=.t.
>thisform.&zc6.enabled=.t.
>
>error "unrecognized command verb"
>
>warm regards,
>mk.