SELECT field1, field2 FROM yourtable INTO ARRAY yourarrayThis will give you an array sized to the number of records from the table. You can limit the records using a WHERE clause on the SELECT statement. If there are no records selected, the array won't get created if it doesn't exist, nor will it be resized if it did already exist. You can check for the number of records by using the _TALLY system variable after the SELECT.