How do I get the extension of a file.
I have a openfiledialog to get the file, then I want to check the extension and perform different actions based on the file extension.
I looked through the help and the only thing that was even close was file.attribute, but that is not what I need.
Example
if ofd.filename.extension="jpg" then
file.copy(ofd.filename,newname+ofd.filename.extension)
I have a openfiledialog to get the file, then I want to check the extension and perform different actions based on the file extension.
I looked through the help and the only thing that was even close was file.attribute, but that is not what I need.
Example
if ofd.filename.extension="jpg" then
file.copy(ofd.filename,newname+ofd.filename.extension)