FileType is blank in the Debugger

Var csvType As New FileType
followed by some filled properties, then a Break after the user selected a csv file.

I only wanted to see what csvType properties are filled (by me / by Xojo / Tahoe):

Once in the debugger I clicked in:
image

and get:

Just curious.

Define your FileType in the IDE using the FileType editor. Then use that when presenting the FileOpenDialog by assigning the FileType(s) to the dialog’s Filter property:

oFileOpen = New OpenFileDialog
oFileOpen.Filter = SomeFileTypeSet.SomeType
oFItem = oFileOpen.ShowModal

and then how do I get the FileType Properties ?

Say:
.Extensions
.Name
.UTI
[separation line to avoid mistakes between the two sets]
.Name
.Imported
.MIMEType

The easiest way is to drop a file onto the File Type Set editor.
Extensions is the extension you want to support. for example .csv
Name is your name for what you want to call that file type.

Choose the Type, Role and Rank based on your application. For example:
If it is a common file type you want to be able to import into your application then Type will be File. Role will be Edit or View and Rank will be Alternate or Default.

If you wanted to be able to drop an application on your app (or choose it via the FileOpenDialog) then Folder would be the right answer on a Mac.

Role describes the nature of your program. ie If you can view, edit a file or even execute it.

Rank gives the system your apps priority for the file type. If it is a common type you will likely be Alternate or Default. If it is for a file type that is specific to your application then you should choose Owner. You would then need to provide an icon for the file (and should tick the “file type is unique to my application” checkbox.

1 Like

No, not at all. It isn’t at all clear.

FileType isn’t a class, it doesn’t have properties or methods. It is more of a way of defining types of file.

Frankly if that is your attitude then I will not try and help you… so long and good luck.

FileType
I simply go to the documentation and found it. If you do not know It, come on and look there.

One thing is sure is that you tryed to help thinking File Type Group and this is not what I asked.

Here’s the documentation entry for FileType

Your statement “FileType isn’t a class” is completely wrong and now that you read the documentation you know.

From the documentation:

The Forum software says that:
It looks like your link to documentation.xojo.com was already posted in the topic by @emile_schwarz in a reply on Apr 29, 2026 – are you sure you want to post it again?

And it seems you do not read the link.

At a moment in a conversation,if the helper gave answers that goes to a totally different location (compared to the question), how people can answer ?
Telling thank you means to stop asking questions and stay in the dark.

What will you do in that case ?

I do not want to be a Grinch, but what can I say ?

You seems to know what I want and this is not the case. No ESP here.

Please answer to the question if you can; stay tuned.

The reason you see nothing is because the FileType class only uses methods as the setters and getters, so they will never appear in the debugger.

Documentation says they are properties, but not true properties.

You can see this by adding a new class that subclasses FileType.

Add a method and click the dropdown to overload a method. You can see all the methods and “properties” listed there.

If you need to see the values you could subclass the FileType and add your own computed properties that mirror the methods

You will need to add the operators as well