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

Click here to load this message in the networking platform