Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution in VB
Message
De
26/10/1998 18:31:24
 
 
À
25/10/1998 23:28:32
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150101
Message ID:
00150708
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform