I'm looking to write an fullproof OnExecute for a savepicturedialog box. here is a model of what I'm looking for. Solutions don't have to fallow the format exactly if someone has a better way, That's part of the reason I'm here. I want this to support all available image formats.
If SavePictureDialog.Execute then
// code to extract last three char of spd.filename.
// a workable filterindex here is suitable.
// if possible I'de like to evaluate the charstring and use
It's late and I'm really tired so excuse me if I left something out or did something wrong in my example. What I'm shooting for is to avoid using a long series of if statements to save diferent filetypes. If there is a way to use a case statement and call a seperate function that's ok too. I think case statements are cleaner (If only they supported stringtypes.) Thanks in advance.