>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