Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use this command
Message
From
30/09/2005 08:38:15
Alhad Marathe
Asm Consulting
Mumbai, India
 
 
To
24/09/2005 08:33:37
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:
01054828
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform