ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Tree Control -> Displayed Item

I've got a problem with the property node function 'Displayed Items'. When I restart my program, it will delete all items within the tree control with the invoke node function 'Edit Tree Items: Delete'. After that it will use the property node function 'Displayed Items' and I would expect an emtpy array as a result, because the tree control is shown empty. But i will get the items from the former run of the program. As a workaround I insert an invisible element past the deletion. But I think this is a dirty way to do it. Anyone there who knows a better way?

Thanks in advance,
Oliver
0 Kudos
Message 1 of 4
(2,851 Views)
[SRQ 211477]
In LabVIEW 7.1 I wasn't able to reproduce this behavior. I have used a modified version of the shipping tree control example (see attachment).
If you can reproduce the behavior in 7.1 please provide a small example.

Best regards,

Jochen Klier
NI-Germany
0 Kudos
Message 2 of 4
(2,851 Views)
Hello Jochen,
you are right, I should have provided an example before. So I extracted the relevant parts of my program to an example. I'm working with LabView 7.0, therefore I can't say, if it's doing the same at 7.1.

Thanks for your help,
oliver
0 Kudos
Message 3 of 4
(2,851 Views)
Oliver,

I was able to reproduce the behavior with your example in LabVIEW 7.0 but not in 7.1. I haven't found an explicit entry in our developers' database about this problem but it looks like as a side effect one of the improvements for the tree control that were introduced in 7.1 fixed this problem.

Best regards,

Jochen
NI-Germany
0 Kudos
Message 4 of 4
(2,851 Views)