General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only