Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show node in microsoft tree view
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00868010
Message ID:
00868241
Views:
16
Here is how it's done. This assumes the control is named
oleTreeView.
WITH ThisForm.oleTreeView

  ** This adds a parent node
  oRootNode = ThisForm.oleTreeView.Nodes.Add(,, "RootKey", "This is the 1st node")

  ** This adds 10 nodes to the parent
  FOR x = 1  TO 10
    cMyKey = "X" + + TRANSFORM(x)
    cCaption = "This is the node " + TRANSFORM(x)
    oChildKey = .Nodes.Add(oRootNode, 4, cMyKey, cCaption)
  ENDFOR

  ** This adds a child node to node 5
  cMyKey = "X" + SUBSTR(SYS(2015), 2)
  oParentNode = .Nodes(5)
  oRootNode = .Nodes.Add(oParentNode, 4, cMyKey, "Child of node 5")

ENDWITH
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform