- Simone Olianti
- PowerBuilder
- Thursday, 21 June 2018 12:13 PM UTC
Hi there, i'm experiencing a strange behaviour accessing a treeview control in pb2017.
I populate a treeview with some data coming from a json object and then launch a function that scans its data sequentially according to its levels and branches.
Everything working fine until i try to reset the same treeview and repopulate it for example with the same data.
If i try to read the the tv again starting from the beginning it looks completely unsorted....The strange part is that i see the branches in the control correctly but when i try to read it, the labels and data are completely mixed. I get a different result everytime i reset it.
To reset the treeview control i use the tv_1.deleteitem(0)
Is this right or maybe should i use a different approach? am i missing something?
Consider that if i close the window with the tv control and reopen if the first time everything working fine again...
any help would be appreciated,
tia
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.