Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing if an object has a property or method
Message
From
12/02/1999 02:27:46
Walter Meester
HoogkarspelNetherlands
 
 
To
11/02/1999 19:33:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00186691
Message ID:
00186911
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform