Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Macro substitution
Divers
Thread ID:
00364355
Message ID:
00364355
Vues:
47
I want to set focus to a control that's name is stored in the form property cLastFocus. I thought there was a way to mix macro subst or name expression within dot notation but couldn't get it so all I could come up with was this:
LOCAL lcLastActiveControlName, lcMyMacroSubst
lcLastActiveControlName=Thisform.cLastFocus

IF NOT EMPTY(lcLastActiveControlName)
   lcMyMacroSubst ="Thisform." + lcLastActiveControlName+".SetFocus"
   &lcMyMacroSubst
ENDIF
Actually I had it from earlier but lost the notes
Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform