ShowOpenFileDialog

Hi
how i can do this to show file name on the File Dialog
f = FolderItem.ShowOpenFileDialog(“LN_COTR.*”)

thanks

What is “LN_COTR.*” ?

if file name that i am looking to show all files that start with that name.
thanks

Does the documentation imply that this is possible? As I understand it, that is not how it works. You can tell it to show all .gif and .jpeg, for example.

so is no possible to use name without file ext.
ok, thanks

You may need to use OpenFileDialog instead with the SuggestedFileName option:
https://documentation.xojo.com/api/user_interface/desktop/openfiledialog.html#openfiledialog-suggestedfilename

but only on Windows.

Not sure if this will list all files for filename.*

I don’t think the SuggestedFileName parameter would do the trick. You need to use the Filter parameter, as you did. However, the docs say:

The filter parameter is used to limit the types of files that the user can open to one or more of the file types defined via the FileType class or in the File Type Sets Editor in the IDE. The filter is a semicolon-separated list of file type names.

So, you can’t simply specify a file pattern, you need to define a file type. I don’t know if it is possible to specify file type with a pattern like this in Xojo. The always talk about the file extension. But that is the default everybody expects. So it may be worth to try specifying one with a pattern.