>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.
store .f. to ("thisform." + zc1 + "1.enabled"), , ;
("thisform." + zc1 + "3.enabled"),
("thisform." + zc1 + "4.enabled")
store .t. to ("thisform." + zc1 + "5.enabled"), ;
("thisform." + zc1 + "6.enabled")
If you want to execute some form's method:
lcMethod = "RunProcess()"
myReturnValue = evaluate('thisform.' + m.lcMethod)
If it's not broken, fix it until it is.
My Blog