12-12-2010 07:27 AM
I have a Heisenbug (a bug that disappears when you look closely at it).
I use a text control user input. Somewhere else in the program I use a reference to the control get the value. When I use it in a loop, I cannot get the Value property to populate a text indicator. When I put a debug probe on it it works fine.
I am guessing that it has something to do with the logic that updates Windows widgets. The code that updates the debug probe also forces the correct behavior in the program. How can I force this update to occur without the debug probe?
Solved! Go to Solution.
12-13-2010 07:52 AM
I found that if I used the Text.Text property, it worked as expected. I am guessing that the Value property does not get updated until the input is finished (Enter key or when the focus is changed).
12-13-2010 08:03 AM
I don't see a problem - it works just as I would expect (LV 2010, Win Vista).
Perhaps your expectations are not correct.
I am guessing that the Value property does not get updated until the input is finished (Enter key or when the focus is changed).
That is normal behavior, and usually what you want. If you want to update the value while typing, then set the UPDATE VALUE WHILE TYPING property of the control.
Blog for (mostly LabVIEW) programmers: Tips And Tricks