Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
From
28/04/2000 02:10:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00364355
Message ID:
00364359
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform