I'm playing around with this code from the tutorials.
Sub Object_OnDropFiles(files)
Object.picture = files
End Sub
How would we test for valid file formats (bmp,ico,png,tga,jpg) for the picture file being dragged?
I want to do something like this, but do not know the correct syntax.
If filename extension <> bmp,ico,png,tga or jpg then I display a message box message, then exit the subroutine to try again.
Thanks