answer file using a start location and filter file type

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

answer file using a start location and filter file type

Post by Da_Elf » Tue Aug 05, 2014 3:18 pm

as the title says i want the answer dialog to filter both file type and to have a start location. ive googled it and searched the forum but can find it with one one option not both

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer file using a start location and filter file type

Post by Klaus » Tue Aug 05, 2014 3:38 pm

Hi Da_Elf,

"why seek far afield when the good could not be any closer by?" 8)

Use the dictionary instead fo Google:
answer file[s] prompt [with defaultPath] [with type types [or type types ...]] windowTitle] [as sheet]
...
put specialfolderpath("desktop") into tFolder
answer file "Select a JPEG file:" with tFolder with type "|jpg|JPEG"
...

Best

Klaus

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: answer file using a start location and filter file type

Post by Da_Elf » Tue Aug 05, 2014 3:46 pm

dictionary was the 1st place i looked naturally. however my mistake was getting the order wrong. when i tried it with the file type then the start folder it didnt work. thanks

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: answer file using a start location and filter file type

Post by Klaus » Tue Aug 05, 2014 3:56 pm

answer file prompt [with defaultPath] [with type ...]
Yep, hard to figure out the correct order... :mrgreen:

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: answer file using a start location and filter file type

Post by Da_Elf » Tue Dec 16, 2014 9:10 pm

Ok i checked the downloads section for their release notes. The copy i got from just clicking download on the homepage was 7.0.0 build 10018 and i see its got a problem with the answer files code. The change log 7.0.1 rc4 shows work was done to it. Does anyone know if its all ok now? i had to go back to the copy of 6.5.0 build 3009 that i initially coded in to get things working again

Post Reply