Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use this command
Message
De
30/09/2005 08:38:15
Alhad Marathe
Asm Consulting
Mumbai, Inde
 
 
À
24/09/2005 08:33:37
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:
01054828
Vues:
19
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform