Skip to main content

Extend - Tree View - Read every entry

  • September 28, 2011
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 27 September 2011]

How can i read all the contents of e tree view? I have build a tree view control with parent and child items and i want to read all items till i found the one i am searching in my loop procedure.

can anyone help?

2 replies

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • September 28, 2011

[Migrated content. Thread originally posted on 27 September 2011]

How can i read all the contents of e tree view? I have build a tree view control with parent and child items and i want to read all items till i found the one i am searching in my loop procedure.

can anyone help?
I am not sure I understand your question, your COBOL program built the tree ... creating Parents and Children ... and the tree provides events so that you can inquire on an item when expanded or collapsed ... that said the tree view has a very nice property called hidden-data - you can use hidden-data to store unique values so that you know exactly which item in the tree was selected. Similar to whatever loop that you set up to load the tree, you can have an INQUIRE loop to go through the tree and get each Parent / Child and return their title (or hidden-data).

  • Author
  • Rocketeer
  • 19312 replies
  • September 28, 2011

[Migrated content. Thread originally posted on 27 September 2011]

How can i read all the contents of e tree view? I have build a tree view control with parent and child items and i want to read all items till i found the one i am searching in my loop procedure.

can anyone help?
I have a tree view control with 100 items, mixed parent and child items. I want to inquire all the items sequential but i dont know how can i do that.

my idea is to create an array and store there all the identifier pointer of the tree view and call the items one by one.

what do you think?