Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
De
28/04/2000 02:10:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00364355
Message ID:
00364359
Vues:
13
John,
>lcMyMacroSubst ="Thisform." + lcLastActiveControlName+".SetFocus"
>&lcMyMacroSubst
There are several ways to do this. Instead of the macro command execution above you could use EVAL, although it requires the "( )" on the setfocus:
EVAL("Thisform." + lcLastActiveControlName+".SetFocus()")
If you were trying before to embed the macro in the command, you have to put a "." to terminate the macro and also a "." between it and the setfocus:
Thisform.&lcLastActiveControlName..SetFocus
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform