Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER NAME
Message
 
To
08/02/2000 07:42:42
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00328684
Message ID:
00328740
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform