How to use more than one browse button in a dialog

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:

How to use more than one browse button in a dialog

Post by migro » Tue Jun 09, 2009 9:37 am

I like to use 3 browse buttons in a dialog to select 3 directories.

The caption on the buttons is all times the same. Is there a smarter way to handle this, not in the form working with spaces like this sample found in the forum:

Code: Select all

Dialog>Dialog1
   Caption=Dialog1
   Width=822
   Height=625
   Top=CENTER
   Left=CENTER
   Max=1
   Min=1
   Close=1
   Resize=0
   Edit=FileName1,469,82,209,%FName1%
   Edit=FileName2,469,161,209,%FName2%
   Edit=FileName3,466,238,209,%FName3%
   Button=           Browse       B1,685,80,75,25,3
   Button=           Browse       B2,685,159,75,25,3
   Button=           Browse       B3,682,236,75,25,3
   FileBrowse=           Browse       B1,FileName1
   FileBrowse=           Browse       B2,FileName2
   FileBrowse=           Browse       B3,FileName3
EndDialog>Dialog1

Show>Dialog1,r
regards
migro

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

Post by JRL » Tue Jun 09, 2009 1:07 pm

Is there a smarter way to handle this
It works and its easy. What could be smarter than that?

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