Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PEM values at designtime
Message
De
15/10/2004 04:56:02
 
 
À
14/10/2004 20:01:22
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00950143
Message ID:
00951658
Vues:
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

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform