OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: ModestNovice on 30 Aug 2008, 01:29:28

Title: Update Text ( lbSetText) ???
Post by: ModestNovice on 30 Aug 2008, 01:29:28
SOLVED

just closed dialog, and opened again like I do in my open inventory script.

 :D
Title: Re: Update Text ( lbSetText) ???
Post by: i0n0s on 30 Aug 2008, 03:10:55
It would help if you describe how your code should work.
What is temp_inv?
Then the for-loop:
You delete on entry at one time, then add (count new_a - 1) entry to the list.
And since the for-loop new_a grows fast.

And as a hint for the future: Please use local variables if there is no need for them outside that script.
Title: Re: Update Text ( lbSetText) ???
Post by: ModestNovice on 30 Aug 2008, 03:23:56
righto thx i0n0s.

temp_inv is another array.
Title: Re: Update Text ( lbSetText) ???
Post by: Spooner on 30 Aug 2008, 13:23:36
There is a command, lbClear (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=l#179), that deletes all the current entries of a listbox.

Also, when you "solve" a question, please don't delete the original question. It stops other people from being able to learn from your experience.