dkl
Full Member
Posts: 234
|
Post by dkl on Jul 1, 2021 2:26:27 GMT -5
If I have a GUI open with a listbox showing data, can I load New Data into the array$() and then display it in the already 'open' list box?
I want to be able to perform a search and display the results in a listbox. I don't want to open a 'New' popup window, but at the moment it seems to be the only way of doing it.
My intention was to have a 2nd listbox hidden behind the 1st listbox > perform the search > then unhide the 2nd listbox to display the results, but as the 2nd listbox has to be 'opened' when the GUI is opened I can't 'at the moment' see how I can get the data into the listbox array$()
If data has already been put into the array$() before the GUI is opened it's not a problem, but from a random search later, I'm stumped!
I've tried REDIM array$() and put the new data into the array$(), which works, but I cannot display it.
I hope you understand what I mean?
|
|
|
Post by Chris Iverson on Jul 1, 2021 3:35:20 GMT -5
You might be missing the "reload" command for the listbox, which causes it to refresh the list using the current contents of the linked array.
In other words, update the array, and then:
#window.listbox, "reload"
|
|