CheckFileExtension( string file, string extension ) return boolean

This method allow you to verify that a filename has the needed extension or not using a concise and easy to read syntax :

...
String ls_filename
...
if #.CheckFileExtension( ls_filename, ".txt" ) = true then
 ..
else
..
end if
...


See also:

SetFileExtension




Last edited Jul 3, 2015 at 10:36 AM by domangep, version 4