General information
Category:
Forms & Form designer
Hi Thomas,
My original reply should have read...
>>That's the idea, except ResetToDefault() returns the original VFP default value, not necessary the value set in the property sheet at *designtime* (not runtime).
I understand your last example and agree that it works correctly. However, going back to your original example, let me explain the problem in more detail.
In my baseclass textbox, readonly=.F. (ie. the VFP default).
In an instance of this textbox on a particular form, I set readonly=.T. in the PEM sheet.
I run the form, suspend the program in the textbox.init() method, this.readonly=.T. (as I would expect), but after I run this.resettodefault(), this.readonly=.F., which is not as I set it at designtime.
Hope this is clearer.
Regards,
Alan
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only