You can use UBOUND to test the return variable to see if it is an array. If the variable is an error code (not an array) UBOUND($var) will return -1.
_________________________
Home page: http://www.kixhelp.com/hb/