General information
Category:
Coding, syntax & commands
>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"
>
Although I'm not convinced this is the best way to accomplish your goal, you need a period after zc and before the number to tell VFP that the variable to evaluate is just zc, not zc1 or zc2:
thisform.&zc.1.enabled = .f.
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only