Re: New Problem in Dialog

Eduardo Gutierrez de O <[email protected]> Tue, 17 Apr 2018 20:29:40 +0200
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
The dialog uses filetypes, which generally means extensions but can also define older (better, but legacy and no longer recommended) ways.

The OpenDialog function takes these filetypes as arguments, to know what to show.

This is documented in the guide.

If you've used or copied one of the common filetypes it may include already identifiers that don't use the extension.

As a side note: You should always use an extension. I don't like it but has been the recommended way by Apple for several years (it was the only way for the rest of the platforms already).

As before, it's really hard to help without sample code.

Eduo


> On 16 Apr 2018, at 20:27, Daniel Drijard <[email protected] <mailto:[email protected]>> wrote:
> 
>     I have a new dialog problem (possibly connected to my recent one). I want to select a text file in a folder. Thus I gather some text files to which I affect or not the extension .txt. Some of them are accessible (accepted) by the dialog, others not. The point is that I have 2 pieces of code which behave differently for this, one requesting the .txt extension the other refusing it.
>     My question is about understanding what is defining the Text style. There is the .txt extension but there must be an internal file’s characteristic. The program which generated the file must be somewhat indicated in the file. 
>    I do not know what the dialog uses to accept/reject a file. 
> 
> Daniel
> 
> Daniel Drijard
> Thoiry téléphone : 
>   04 50 41 22 75
>     international
>   +33/4 50 41 22 75
> Courriel :
>    [email protected] <mailto:[email protected]>
> Thoiry F-01710
>    48, rue des Savoies
>