Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use this command
Message
From
23/09/2005 13:22:33
 
 
To
23/09/2005 11:52:06
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052410
Message ID:
01052473
Views:
13
>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
Map
View

Click here to load this message in the networking platform