Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I pass class.properties to class.methods by Refer
Message
De
12/06/1998 09:30:19
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00107559
Message ID:
00107562
Vues:
17
>Does anybody know how to pass a class.property to a method in the same class (by Reference)?
>
>Have tried the following with no success:
>
>Approach #1:
>------------
>
>THIS.Method( @THIS.Property1, @THIS.Property2 )
>
>Approach #2:
>------------
>m.lcOldUDFParm = SET("UDFPARM")
>SET UDFPARM BY REFERENCE
>THIS.Method( THIS.Property1, THIS.Property2 )
>SET UDFPARM &lcOldUDFParm
>
>Thank you
HI

AFAIK, you can't do this. Either pass the whole object to the method as a parameter, or copy the property to a variable, call the method, then update the property from the variable.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform