Reset selected entry in DropDown box to the default entry

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Reset selected entry in DropDown box to the default entry

Post by migro » Thu Jun 25, 2009 7:47 pm

Is there a way to reset also a selected entry in a dropdown field to the default (first) entry in the list?

With "ResetDialogAction>" I can reset all dialog elements to their default values exept the selected Entry of a combobox.

Thanks for any ideas in advance.
regards
migro

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jun 25, 2009 9:57 pm

Set the variable DialogName.ComboBoxName.ItemIndex to 0 (zero) then do your ResetDialogAction>

Code: Select all

Let>Dialog1.msComboBox1.ItemIndex=0
ResetDialogAction>Dialog1

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Post by migro » Thu Jun 25, 2009 10:59 pm

Dear JRL,

thanks a lot for this hint. :oops:
regards
migro

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