Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a property by reference???
Message
De
20/08/2001 21:03:17
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00546079
Message ID:
00546544
Vues:
14
> Does anything one know how to pass a property of an object by reference?
>Something like
>
>oObj = CREATEOBJECT("Custom")
>oObj.AddProperty("Prop1", "")
>oSomeFunction = CREATEOBJECT("SomeFunction")
>oSomeFunction.Function1(@oObj.Prop1)

How about a "named" reference; eg.
PRIVATE oObj 
...
oSomeFunction.Function1( "oObj.Prop1" )

...
PROCEDURE Function1
LPARAMETER tcProp
...
STORE EVAL(tcProp) TO x
...
STORE y to (tcProp)
...   
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform