How to get only the filename and extension for a text item?
wyfwongNov 12 2007 — edited Nov 13 2007Suppose there is a non-database text item called :myfilename
:myfilename := 'C:\SomeFolder\SomePath\myfile.doc';
I would like to get the file name only without the full path,
i.e. myfile.doc
and the file extension, i.e. 'doc', 'bat', 'java', 'xhtml' etc., i.e. the last few chars from the right to the period.
Any help is welcome.