Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursion with assign and access methods
Message
 
 
À
07/06/2010 23:22:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01467810
Message ID:
01467821
Vues:
41
>>Hi everybody,
>>
>>If access of the property assigns a value to this property or vs. versa, one method calls another again. Is there a way to not call one of the methods if we need to access a property in the access method or assign it?
>>
>>Thanks in advance.
>
>I suspect you need to add additional object properties that control whether the access or assign method should go ahead. The access and assign methods would then have to test for this property to go ahead - or not. Although I don't know how to block the action of the access method, since it has to return something; but perhaps in this case it would just return a plain value without doing more complicated processing.

I found that access method tries to set the property. But I think I can safely comment out this code.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform