Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution in VB
Message
From
26/10/1998 18:31:24
 
 
To
25/10/1998 23:28:32
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00150101
Message ID:
00150708
Views:
21
>As far as I know, eval(cExpr) return the result of
>the cExpr, not a pointer/reference. Are you sure?

Absolutely,

LOCAL lcObjectName

lcObjectName = "SomeName"

WITH THIS

tvRetVal = EVAL(".") - Sets tvRetVal to This
tvRetVal = EVAL(".Parent") - Sets tvRetVal to This.Parent
tvRetVal = EVAL(".Parent." + lcObjectName) - Sets tvRetVal to This.Parent.SomeName
tvRetVal = EVAL(".Parent." + lcObjectName +".Execute()") - Fires This.Parent.SomeName.Execute()


ENDWITH
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform