Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview
Message
From
01/08/2005 17:16:57
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035667
Message ID:
01037644
Views:
27
SYS(2015) should always be unique. SYS(3) had the problem with calling it too quickly.

>Welcome back :o)
>
>Yes, The loop can be too fast, but this is an example HOW to add a node. I suppose nobody using SYS(2015) as a Key, because when use click on Node how S/He can do something with the record matching that node?
>
>>Sometimes the loop may be too fast for a SYS(2015) to generate a unique key.
>>
>>>>Treeview - trying to display contents from a dbf
>>>Nothing easier :o)
>>>But can you post the structure of the DBF and how you want the treeview looks like?
>>>Most simple way:
>>>
>>>thisform.oleTree.Nodes.Add(,1,"RootDBFNode","YourDBF Name",,)
>>>SELECT YourDbf
>>>SCAN
>>>   oNode = thisform.oleTree.nodes.add("RootDBFNode",4,SYS(2015), ALLTRIM(Name),,) && Supposing NAME is field from your DBF
>>>ENDSCAN
>>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform