Get file name from full path and name?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Feb 8 17:57:55 EST 2006


Hi Garret,

function FullPathToShortFileName pPath
   set the itemDel to slash
   return last item of pPath
end FullPathToShortFileName

And (for instance):

put FullPathToFileName(the filename of this stack) into  
tStackShortFileName

Le 8 févr. 06 à 23:46, Garrett Hylltun a écrit :

> Searched the docs for anything that might do this, but can't find  
> anything....
>
> Does anyone know how to extract a file name and extension from a  
> full path, such as from "answer file" ?

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list