Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for THIS.&cFileName..iFiscalPeriod
Message
From
15/08/2000 10:11:48
 
 
To
15/08/2000 10:07:51
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00404916
Message ID:
00404940
Views:
10
>Thanks Trey and Mike. I'm not used to using EVAL(). Guess it's time I learned! ;-)

Great for object references too:

loObject = eval('thisform.command' + lnI)
loObject.Caption = 'Command1'


Instead of

lcObject = 'command' + lnI
thisform.&lcObject..Caption = 'Command1'


The first one's faster, I think, and just looks cleaner, like you probably noticed with your problem.
Previous
Reply
Map
View

Click here to load this message in the networking platform