It depends too on exactly what he's testing for. If he really does just want to test for existence, then "AND NOT ISNULL(SomeObject)"
might be an issue. An object can be null and still be an object. No?
>Yes,
>It was a typo in my post. It should be TYPE() function. Sorry about that.
>
>IF TYPE("SomeVariable") <> "U"
> * Variable exists
>
>IF TYPE("SomeObject") = "O" AND NOT ISNULL(SomeObject)
> * Object exists
>
>>
>>>>My syntax is correct.
>>>>
>>>Sorry, it isn't
>>>The variable name does not need quotes for vartype()
>>>VARTYPE("SomeVariable") will always return 'C'
>>
>>Gregory and Fabio are right, Sergey!
>>It's documented as they say. And I tested it.
>>The quotes are used if using TYPE().
>>And documentation says that VARTYPE() is faster than TYPE().
>>
>>Many thanks to both of you.