Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing if an object has a property or method
Message
De
12/02/1999 02:27:46
Walter Meester
HoogkarspelPays-Bas
 
 
À
11/02/1999 19:33:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00186691
Message ID:
00186911
Vues:
23
Erik, Evan, Edwin

>> I haven't relied on this function that much as I have heard that it is somewhat buggy, GPF prone, but I can't remember where I heard it.
>> Hopefully, someone else will chime in if I am mistaken on this point.
>>HTH,

>PEMSTATUS works fine if used carefully. The problems come in when PEMSTATUS is used multiple times in the same line checking hte same object. When this is done, it seems that PEMSTATUS fails to release an internal reference to the object being checked, and this can make a form hang.

>GPFs, I have never run into.

I've never experienced GPF's with Pemstatus. I've experience problems releasing forms when the pemstatus function was used along with the type function on the same line:

lMethodexists= TYPE("_Screen.activeform")="O" AND PEMSTATUS(_Screen.Activeform, m.cPropertieOrMethod,5)

instead of this, split the line in two lines:

oActiveform=IIF(TYPE("_Screen.ActiveForm.visible")="L",_Screen.ActiveForm,.NULL.)
lMethodexists=!ISNULL(oActiveform) AND PEMSTATUS(oActiveform, m.cPropertieOrMethod,5)

Regards,

Walter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform