answer file with 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
dntknwjck
Posts: 24
Joined: Sat Mar 23, 2019 6:14 pm

answer file with type

Post by dntknwjck » Thu Nov 14, 2019 7:24 pm

Good Morning

Have been fighting this for several hours:
File1.QFX does not show up in the Linux dialog
Using LC 9.5 running on LinuxMint 18.3 and Win10 version 1903

this code produces the following scrren shots(2 attachments).

Code: Select all

   answer file prompt with specialFolderPath("resources") with type "QFX|qfx,|QFX" titled "Open OFX File" 
Any suggestions would be greatly appreciated.
Windows.png
Linux.png

Klaus
Posts: 13822
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: answer file with type

Post by Klaus » Thu Nov 14, 2019 7:43 pm

Hi dntknwjck,

this is how it should work:

Code: Select all

...
answer file "The PROMPT is a message for the user! :-)"  with specialFolderPath("resources") with type "QFX|qfx|" titled "Open OFX File" 
...
Works as exspected here on my Mac.
If your Linux is case-sensitive you may need to supply teh filetyp in capitals, too:

Code: Select all

...
answer file "The PROMPT is a message for the user! :-)"  with specialFolderPath("resources") with type "QFX|qfx,QFX|" titled "Open OFX File" 
...
At least worth a try.


Best

Klaus

dntknwjck
Posts: 24
Joined: Sat Mar 23, 2019 6:14 pm

Re: answer file with type

Post by dntknwjck » Thu Nov 14, 2019 8:04 pm

Thanks Klaus
That works except that on my Linux the prompt doesn't show but the title does. On windows the prompt shows, but the title does not show.
Will explore that a little further sometime.

Klaus
Posts: 13822
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: answer file with type

Post by Klaus » Thu Nov 14, 2019 8:08 pm

Well, there ARE some differences between the platforms.
On my Mac I only see the PROMPT, but not the title. :D

So don't worry, this correct behaviour!

dntknwjck
Posts: 24
Joined: Sat Mar 23, 2019 6:14 pm

Re: answer file with type

Post by dntknwjck » Thu Nov 14, 2019 10:00 pm

A little more effort and I find that prompt and titled are mutually exclusive.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”