BASENAME()
From Lianjapedia
Revision as of 09:02, 16 November 2012 by Lianjasupport (Talk | contribs)
Contents
Purpose
Function to return the base filename from a given file specification
Syntax
BASENAME(<expC>)
See Also
DBF(), DEFAULT(), DEFAULTEXT(), FORCEEXT(), FORCEPATH(), GETENV(), JUSTEXT(), JUSTFNAME(), JUSTPATH(), JUSTSTEM(), JUSTDRIVE(), NDX(), PATH(), SET FULLPATH, SET PATH, SYS()
Description
The BASENAME() function returns the base filename from the file specification <expC>. This function is very useful when used in conjunction with the command, SET FULLPATH ON. The BASENAME() functions always returns a character string without changing the case.
Example
? dbf() customers.dbf set fullpath on ? dbf() /opt/lianja/data/southwind/customers.dbf ? basename(dbf()) customers.dbf