Home   Help Search Login Register  

Author Topic: Update Text ( lbSetText) ???  (Read 1323 times)

0 Members and 1 Guest are viewing this topic.

Offline ModestNovice

  • Members
  • *
Update Text ( lbSetText) ???
« on: 30 Aug 2008, 01:29:28 »
SOLVED

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

 :D
« Last Edit: 30 Aug 2008, 03:48:13 by DaChevs »
"The road became empty and the people disappeared. The clouds ran away; opened up the sky, and one by one I watched every constellation die."
- Sean "Slug" Daley

Offline i0n0s

  • Former Staff
  • ****
Re: Update Text ( lbSetText) ???
« Reply #1 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.

Offline ModestNovice

  • Members
  • *
Re: Update Text ( lbSetText) ???
« Reply #2 on: 30 Aug 2008, 03:23:56 »
righto thx i0n0s.

temp_inv is another array.
"The road became empty and the people disappeared. The clouds ran away; opened up the sky, and one by one I watched every constellation die."
- Sean "Slug" Daley

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Update Text ( lbSetText) ???
« Reply #3 on: 30 Aug 2008, 13:23:36 »
There is a command, lbClear, 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.
« Last Edit: 30 Aug 2008, 13:25:23 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)