01-03-2018 08:23 AM
Hi, i am making a game, where at the beginning Players write their names into a Listbox. Later in my program, i want to access those names seperatly, but i have some problems doing it. I know that i can access it with the property node and item names, but if someone changes the name at the while the program is running, the property node doesnt get the change and uses the old input.
Solved! Go to Solution.
01-03-2018 08:30 AM
Hi Liana,
if someone changes the name at the while the program is running, the property node doesnt get the change and uses the old input.
This sounds like a race condition in your VI. Solution: debug your VI…
Why don't you keep the players name in a shift register/1D array of strings?
Why don't you disable editing of the listbox when the game is running?
01-03-2018 11:03 AM
Gerd already gave you some great hints.
We probably could be even more helpful if you would attach a simplified version of your code. Whatever you are doing seems quite convoluted and I am sure it could be done much simpler.
Writing names directly into a listbox seems wrong. Create a dialog to add names to the listbox (and internal name array) instead.
01-05-2018 05:23 AM
Thank you, you are probably right, that Llistbox isnt the right thing to use for what i want. Since i was new to LabVIEW, i took the first Thing that i found 🙂 i am gonna look for this Dialog box thanks again