Hi,
i want to use input with file or folder browse in a dialog. Is this possible.
Cannot find anything about it.
Regards,
Matthias
file or folder browse in Dialog?
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Use INPUT>
From the Input Help section:
Edited: Oops!. Sorry, I missed the reference to Dialog. But JRL caught it for you. Thanks.
From the Input Help section:
The Input box now also has a file browse button, making it useful for accepting filenames from the user. The file browse button can be hidden by setting INPUT_BROWSE to 0 (Let>INPUT_BROWSE=0). Set INPUT_BROWSE to 2 to display a folder browse dialog for locating folders instead of files.
Edited: Oops!. Sorry, I missed the reference to Dialog. But JRL caught it for you. Thanks.
Last edited by Bob Hansen on Thu Mar 29, 2007 8:27 pm, edited 2 times in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Or, if you want to use a dialog, look up FileBrowse under Dialog in Help.
Here is an example:
Here is an example:
Code: Select all
Dialog>Dialog1
Caption=Dialog1
Width=445
Height=155
Top=216
Left=48
Button=OK,24,80,75,25,3
Button=Browse,320,80,75,25,0
Edit=msEdit1,24,24,377,
FileBrowse=Browse,msEdit1,Text Files|*.txt|All Files|*.*,open
EndDialog>Dialog1
Show>dialog1
Label>ActionLoop
GetDialogAction>dialog1,r1
If>r1=2,exit
If>r1=3,Process
Wait>0.01
Goto>ActionLoop
SRT>Process
//Do stuff
MessageModal>Doing Stuff with %dialog1.msedit1%
ResetDialogAction>dialog1
END>Process
Label>exit