Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use this command
Message
 
 
À
23/09/2005 11:52:06
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01052410
Message ID:
01052418
Vues:
7
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform