Hi Anatoliy,
VARTYPE() is fine for a single variable but throws an error when testing for a non-existent array element, whilst TYPE() tests ok. eg:
? TYPE( "NoArray[1]" )
? VARTYPE( NoArray[1] )
Otherwise I also prefer VARTYPE().
>I just opened VFP6 session and type in Command window
>? VARTYPE(aa)
>no error returned.
>
>As I can see an error can happen if the second parameter is used with VARTYPE like
>? VARTYPE(m.bb, .T.)
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.