Walter Meester
HoogkarspelNetherlands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only