>public zc
>zc="command"
>
>in the click event of command button i want to write like below :
>
>thisform.&zc.1.enabled=.f.
>thisform.&zc.2.enabled=.f.
>thisform.&zc.3.enabled=.f.
>thisform.&zc.4.enabled=.f.
>thisform.&zc.5.enabled=.t.
>thisform.&zc.6.enabled=.t.
>
>error "unrecognized command verb"
>
>warm regards,
>mk.
Try this,
for i = 1 to 6
objname = 'COMMAND'+ allt(str(i))
mstring = 'thisform.'+ objname
with &mstring
.enabled = .F.
endwith
endfor
Alhad
Only direct experience is Knowledge;
Everything else is just Information.