Hi
Not sure what you are asking for here. You have the user select a file from a dialog which has that filter set for it - then the filename returned will have the extension and in turn, it is simple to get the extension from that filename.
Where, in that process do you want to parse the filter? What reason to bother to parse it (presumably you set up the filter in your code in the first place)?
The filter, being a simple string can be manipulated quite easily as would any sting.
Hello, thanks for helping out, after file is selected and dialog is closed :)
You are trying to check if the file has one of the extensions specified OR not, i.e. they selected the All files option?
Hi, may I know if you have got any chance to check my answer? I am glad to help if you have any other questions.
Sign in to comment