You can check for the value of _tally after the select. If it is 0, the query returned no rows and the array was not created.
if _tally > 0
endif
Alternately you can use type() function
if type("yourarray[1]") = "U"
else
endif
Or you can use both to be absolutely sure that the array exists
if _tally > 0 and type("yourarray[1]") != "U"
endif
HTH
>Hi,
>
>I created an array with a SELECT-SQL statement. I know if the SQL statement does not return any records the array doesn't get created. I have some code I need to process only if the array is created. How can I check for this? Is there a command for arrays similar to SELECT() to determine if the array is occupying a work area?
>
>Thanks,