Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine is property is set to default?
Message
From
17/02/1997 04:34:22
 
 
To
16/02/1997 16:50:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00020752
Message ID:
00020784
Views:
43
>>>I've seen that somewhere. I would like to determine if one of my base textbox class property is set to default or if it was change to something else at design time.
>>Probably PEMSTATUS()can help?
>
>Here's what I have so far. I added PEMSTATUS() to not determine the InputMask() if the developer changed it at design time.
>
>* Input mask
>IF NOT PEMSTATUS(This,'InputMask',0)
> IF TYPE(This.ControlSource)='C'
> This.Inputmask=REPLICATE('X',LEN(EVALUATE(This.ControlSource)))
> ENDIF
>ENDIF

There were discussions on CompuServe about PEMSTATUS() in 3.0 where people thought it was creating orphaned handles to objects and preventing forms being released.

Since it was intermittent and almost impossile to debug, the consensus was not to use it. I don't know if it is fixed in 5.0 but thought you might want to know that if one day your forms fail to release, or you CLEAR ALL and VFP does a GPF - PEMSTATUS() might not have been fixed.
Previous
Reply
Map
View

Click here to load this message in the networking platform