Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine is property is set to default?
Message
De
17/02/1997 04:34:22
 
 
À
16/02/1997 16:50:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00020752
Message ID:
00020784
Vues:
39
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform