EdwardMartinIII
Technical User
I'm collecting strings. Each time my User clicks a button, I want to add a new string to an array of strings. However, each time the onclick event is processed, the array variable is flushed, which isn't really a surprise.
What I was hoping I could do is take an invisible listbox and make it a storage bin for the array. Onclick, and the empty array populates itself with the contents of the control. Then adds a new element. Then dumps its guts back into the control, then return to form.
Eventually, User pushes a different button that processes all the "collected" strings, then empties out the control.
Does that seem like a good way of doing it? It seems better than attempting to declare a global variable...
Cheers,
Edward "Do not read this sentence."
What I was hoping I could do is take an invisible listbox and make it a storage bin for the array. Onclick, and the empty array populates itself with the contents of the control. Then adds a new element. Then dumps its guts back into the control, then return to form.
Eventually, User pushes a different button that processes all the "collected" strings, then empties out the control.
Does that seem like a good way of doing it? It seems better than attempting to declare a global variable...
Cheers,
Edward "Do not read this sentence."