Just a question about the list box
how would i update a listbox, by adding additional lines when the user clicks a button?
how could i then assign each line to a variable?
then write said variables to file?
basically i want to have X/Y coord input boxes, then you press the add button to add them to the list, delete to delete a line from the list.
then have a button to write all the info stored in the list box to a file in an array format
Listbox
Moderators: JRL, Dorian (MJT support)
Ok so after a bit of messing around i can update the list box. However, I want to remove certain selected lines from the list box, how would i do that?
And how would i set each line of the entire box to a variable, string, or array? does the Dialog.Items.Text automatically make it into an array? right now the only option i can see is to have it write it to a temporary file then read each line as an incremental array?
and is there no way to have hidden values attached to the listbox lines?
And how would i set each line of the entire box to a variable, string, or array? does the Dialog.Items.Text automatically make it into an array? right now the only option i can see is to have it write it to a temporary file then read each line as an incremental array?
and is there no way to have hidden values attached to the listbox lines?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Use the Separate command to convert to an array.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?