Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PEM values at designtime
Message
De
09/10/2004 14:02:59
 
 
À
09/10/2004 08:02:19
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:
00950176
Vues:
16
>Once a form is showing, I need to ascertain if the value of a property has changed from the value originally set in the PEM sheet. I have tried using PEMSTATUS(object,property,0), but this returns .T. even if the value was changed manually from the default value in the PEM sheet at design-time. I would have expected the result to be .F. until the value was changed once the program had started, not changed from its default value at designtime.
>
>On a similar subject, I would like to ascertain the value of a property as set in the PEM sheet. Short of setting-up up another property to store the initial value of the original property in form.init(), is there a more efficient way of doing this?
>
>Any help would be appreciated.


Are you looking for something like
local luCurrProp, luStartProp
luCurrProp = MyObject.MyProperty
= MyObject.ResetToDefault("MyProperty")
luStartProp = MyObject.MyProperty
MyObject.MyProperty = m.luCurrProp
if m.luCurrProp != luStartProp
  Wait Wind "Somebody Switched MyProperty"
endif
?

HTH

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform