>>>>>Is there any difference between these two functions - Dragan's anticipated comments aside - or advantage of one over the other?
>>>>>
>>>>>IF VARTYPE( THISFORM.tmrCheckMousePosition ) = 'O'
>>>>>
>>>>>
>>>>>IF PEMSTATUS(THISFORM.tmrCheckMousePosition,'O',3)
>>>>>
>>>>
>>>>The second syntax is incorrect.
>>>>
>>>>
PEMSTATUS()>>>>
>>>>If you need to check for a property or a method, use pemstatus. Otherwise you may check with vartype. It all depends on what you're trying to do.
>>>
>>>Syntax aside, obviously I'm checking to see if an object exists. Just an exacto knife and a pencil, Nadya.
>>
>>Not trying to stir anything up, just observing, OK? I think she gave you the right answer and you resisted it because she posted it. I see later in the thread Greg was given 3 stars for giving substantially the same answer, just with the IF/ENDIF code details fleshed out.
>
>Thanks for that insight.
I knew I should have just said nothing. No problem. Move along, folks, it's all over, nothing to see here....
Actually on rereading the earlier posts, Naomi and Greg's answers were a little different. She said use VARTYPE() to query existence and PEMSTATUS() to interrogate properties/events/methods. He showed you how to use PEMSTATUS() to query existence. Personally I would not use PEMSTATUS() in that way, even though it works. That isn't the intent of the command.and may confuse someone who revisits the code later.