At first you'll get error message if query was not successful.
If you use Select INTO TABLE then table will be open and active after querying. Try something like that:
SELECT 0
Select-SQL command
lSuccess = USED()
This is also right for INTO CURSOR.
For checking of array existance try:
lSuccess = TYPE("ALEN(ArrayName)") = "N"
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.