Listbox

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Munky
Newbie
Posts: 4
Joined: Wed Mar 21, 2007 9:41 am

Listbox

Post by Munky » Fri Apr 06, 2007 3:02 pm

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

Munky
Newbie
Posts: 4
Joined: Wed Mar 21, 2007 9:41 am

Post by Munky » Sat Apr 07, 2007 7:22 am

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?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Apr 07, 2007 5:19 pm

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?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts