Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Macro substitution
Miscellaneous
Thread ID:
00364355
Message ID:
00364355
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform