Contents - Index


SHORTFILENAME$

 

ShortFileName$ accepts one argument which can be a string constant or string variable that is expected to be a Windows style filename including the path and filename name extension.  The function returns a string that is set to the filename with the path information removed.

 

Example:

 

FN$=shortfilename$(LoadButton.FileName$)

 

Note that, in the above example, LoadButton.FileName$ is automatically set to the name of the last file that was loaded with a Diagram window Load button that has been give the name LoadButton.

 

Return to String Functions