>VARTYPE( ) is similar to the TYPE( ) function, but VARTYPE( ) is faster and does not require quotation marks ("") >to enclose the specified expression. >> They make it sound like they are interchangeable, but according to some posts here there seems to be problems in using VARTYPE in certain situations.
CLEAR ON ERROR ?? "ERROR: "+MESSAGE() test() DIMENSION something[3] something = 'blabla' ? "--------- AFTER ------" test() PROCEDURE something RETURN DATE() ENDPROC PROCEDURE test ? TYPE("something()") && TYPE return "U" for every bad syntax ? TYPE("1+''") && TYPE return "U" for every bad syntax ? TYPE("something(2)") && TYPE don't call UDF ? VARTYPE(something(2)) && VARTYPE call array or UDF ? VARTYPE(something()) && VARTYPE call UDF but an array exists the fire a error ! ENDPROC