Andrew,
See thread #
319280 for some sample code. Basically, you create a custom class with all properties hidden except AddProperty, then create an instance of this class and add properties for records (as an arrary), recordcount, etc. In your case you would add a property to hold the table name. Loop through your table and use SCATTER NAME [MEMO] to add elements to the record property array. Works for me! HTH
Bob Tracy
Never engage in a battle of wits if you're only half armed.