>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
Hey Bob, this is a neat way to handle this! What I like to do is use a custom class as a wrapper to my SCATTER NAME object. The wrapper creates it, keeps track of the table name, field types, unique id, a recno() & reccount() if necessary, plus it has a basic loop thru table method that I havent really needed much since I added it. Same idea I think, except I never make use of AddProperty, and the name value I give SCATTER NAME is meaningless (SUBSTR(SYS(2015), 3, 10) ).
Roxanne M. Seibert
Independent Consultant, VFP MCP
Code Monkey Like Fritos