Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEM values at designtime
Message
From
15/10/2004 04:56:02
 
 
To
14/10/2004 20:01:22
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950143
Message ID:
00951658
Views:
12
>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

ResetTodefault(),PEM() ( and GETPEM() partially ) are relative to the VCX/PRG subclass.
Any value put into SCX property sheet are like to set it into the form's Load method.

try this:
- Set SCX Form.Caption = 'blablabla'
- put on the DataEnviroment.OpenTables ( fired before Load )
and on Form Load
wait window thisform.Caption
- run
whitin DE.OpenTables You see the form class Caption,
whitin SCX.load you see the 'blablabla' value.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform