Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I didn't know you could do this...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00426345
Message ID:
00426362
Views:
15
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
create cursor test (name C(10), text C(10), children I)
insert into test ('name', 'text') values ('node1', 'text1')
scatter name oTest1
replace name with 'node2', text with 'text2'
scatter name oTest2
oTest1.children=oTest2

Check out the results in the debugger watch window.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

On a somewhat related note, try playing with the ADO Shape language... basically, it's ADO's implementation of SET RELATION -- you add a sub-table as a field, so the field expands, in the debugger for instance, into the child records... as you move through the ado recordset, the "oChild"-like reference reflects only the current child records.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Reply
Map
View

Click here to load this message in the networking platform