Create Combobox with variables

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
flash
Newbie
Posts: 2
Joined: Thu Oct 21, 2004 12:51 pm

Create Combobox with variables

Post by flash » Thu Oct 21, 2004 1:00 pm

I want to create a combobox that will display a list of files to select from. I am using the separate command to create a list. Is this possible?

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Oct 21, 2004 3:50 pm

If all of the files are in the same directory, you could use the Input> command which has a browse button.

If not in the same directory initially, then maybe you could first temporarily move them to the folder, choose from the combo box, then empty the folder and/or move them back to their original source.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Lumumba

Post by Lumumba » Thu Oct 21, 2004 5:03 pm

I guess (s)he's talking about this: Getting a list of files, creating a combo (Dialog) based on that list/var ...

Unfortunately GetFileList> separates each item with an ";" while ComboBox expects an %CRLF% as its separator. Maybe this will do the conversion :?:
GetFileList>c:\temp\*.*,files
Separate>files,;,file_names

Let>k=0
Repeat>k
Add>k,1
ConCat>CBItems, file_names_%k%%CRLF%
Until>k,file_names_count
Another option would be to create a HTML file from that list, to select a file via its link. And btw. --> VBScript :wink:

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