Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use this command
Message
 
 
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:
01052418
Views:
6
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform