FileTypes

Hello,

I created a filetype to be able to only let the correct files to be loaded in my program.
That works fine within the program and i understand this.

My problem : for some reason I need to verify further in my program if the loaded file is of a specific type.
ie I would like to check if the extension of the loaded file is included in a filetype.

Example : my loaded file is “No Matter What.mid” and the filetype iincludes “.mid;.kar;.MID;.KAR”
what is the code to see if the extension is included in this filetype ?

Thanks
Regards
Etienne

Hello,

Or even better (if possible) : can I use the filetype somehow in a Case line ?

Regards
Etienne

If myFile.Name.NthField( ".", CountFields( myFile.Name, "." ) ) = "mid" then

Untested, should get you started.