Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Treeview with data from a table problem...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00617862
Message ID:
00617865
Views:
19
Oh man - sorry - it's OK - I realised I wasn't moving the record pointer so I was trying to reload the same line each time through - here's the working code...
select navigator
* loop through all the records
for intLoop = 1 to reccount('navigator')
goto intLoop
strGroup = alltrim(navigator.na_group)
strName = alltrim(navigator.na_name)
strGraphic = alltrim(navigator.na_graphic)
strIdent = alltrim(navigator.na_ident)
* test each record to see if it's a topnode
if navigator.na_topnode = .t.
.oleTree.nodes.add(, 1, strGroup, strName, strGraphic)
else 
.oleTree.nodes.add(strGroup, 4, strIdent, strName, strGraphic)
endif
endfor
Cheers!
Chris Maiden
Email
Web
Previous
Reply
Map
View

Click here to load this message in the networking platform