Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEM values at designtime
Message
 
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:
00950170
Views:
14
>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.
>
>Regards,

Alan,

Regarding the first question, I don't think there's a way to determine this. BINDEVENT() might, but I think that there's a larger issue.

A well constructed class, shouldn't, IMO, set default values. That's something I think should be done with the child classes. Again, IMO, this promotes polymorphism and information hiding.

In regards to the second question, the accessor methods (_Access and _Assign) might be what you're looking for during run time.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform