>>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.
>
>by design
>
>property_Assign hide property_Assign and property_Access methods.
>property_Access hide property_Access methods
>
>this prevent recursion.
>
>But...
>
>some native VFP property are buggy,
>and read or write property fire the assign and access methods.
I created two methods: DateField_Get and DateField_Set called from Access and Assign methods. In the Get method there was setting of the property (passed by reference) again and I saw in the Set method that it was called by Get. I commented the setting out (as it was not needed) and this resolved the problem.
If it's not broken, fix it until it is.
My Blog