Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save Object
Message
From
13/10/2008 10:26:02
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01354561
Message ID:
01354582
Views:
16
>>I have an object that I use to populate a table using SCATTER/GATHER NAME, but there is not a one-to-one field for each object property. I want to be able to create a cursor from all the properties in the object and populate it for debugging. I want to be able to see all properties for the object and all rows as it is populated during a loop. If I add a property, I want that to automatically get added as a field in the cursor.
>
>Have you considered looking in the Locals window of the debugger? It is a treeview, with objects having + signs you can click to see their properties.

Yeah, I need to have something that will give me 1 row for each loop. The object is created each time the loop executes and I basically need to create a cursor/array that has each object as 1 row. If the loop runs 20 times, there will be 20 rows. Sergey's code does it sideways to what I need and I don't have the time to rewrite it to work the way I need. I was thinking there would just be a simple way to handle it, but I guess not.

It's like I need CREATE CURSOR FROM oObject and then I could SCATTER/GATHER for each loop after that.
Previous
Reply
Map
View

Click here to load this message in the networking platform