Modal Dialog Listbox Items Not Resetting

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
MikeB941
Newbie
Posts: 17
Joined: Sat Jul 07, 2007 7:53 pm

Modal Dialog Listbox Items Not Resetting

Post by MikeB941 » Tue Aug 28, 2007 9:02 am

If have a modal dialog that I'm able to resetdialogaction every value in EXCEPT the listbox items (the memos, etc. all reset fine, I can even successfully reset the pre-selected ItemIndex, but the actual values of the items in the listbox will not reset).

Any known problems?

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

Post by Marcus Tettmar » Tue Aug 28, 2007 9:59 am

This is how you set the list box items:

Let>Dialog1.msListBox1.Items.Text=Fred%CRLF%Harry%CRLF%Sally

Use DialogName.ListBoxName.Items.Text and set to a CRLF delimited list.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

MikeB941
Newbie
Posts: 17
Joined: Sat Jul 07, 2007 7:53 pm

Post by MikeB941 » Tue Aug 28, 2007 4:44 pm

Solved the problem COMPLETELY!!!

THANKS A MILLION!!!

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