>>I note you said "usually". You do have to be aware of VARTYPE() and objects, that the object better exist or you'll get an "Alias not found error".
>
>Well, hopefully "This" will be available :-) But I understand what you mean. For the record, Type() does not work that way, but it can return 'O' for properties that don't actually hold objects anymore, so when checking for object properties, VarType() is faster and less typing.
The only exception for this that I know of is the Parent property of a form. There was a thread about this in the last week. You have to use TYPE() for this or VFP will throw an error. FWIW, it works if you use the same function in a form control.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao