Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEM values at designtime
Message
From
14/10/2004 20:01:22
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
10/10/2004 06:28:13
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950143
Message ID:
00951607
Views:
13
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
Map
View

Click here to load this message in the networking platform