Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursion with assign and access methods
Message
 
 
To
07/06/2010 23:22:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01467810
Message ID:
01467821
Views:
42
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform