Difference between revisions of "BASENAME()"

From Lianjapedia
Jump to: navigation, search
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[DBF()]], [[GETENV()]], [[NDX()]], [[SET FULLPATH]]
+
[[DBF()]], [[DEFAULTEXT()]], [[FORECEXT()]], [[FORCEPATH()]], [[GETENV()]], [[JUSTEXT()]], [[JUSTFNAME()]], [[JUSTPATH()]], [[JUSTSTEM()]], [[JUSTDRIVE()]], [[NDX()]], [[SET FULLPATH]]
  
 
==Description==
 
==Description==

Revision as of 05:34, 22 March 2012

Purpose

Function to return the base filename from a given file specification

Syntax

BASENAME(<expC>)

See Also

DBF(), DEFAULTEXT(), FORECEXT(), FORCEPATH(), GETENV(), JUSTEXT(), JUSTFNAME(), JUSTPATH(), JUSTSTEM(), JUSTDRIVE(), NDX(), SET FULLPATH

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()
accounts.dbf
set fullpath on
? dbf()
/opt/recital/data/demo/accounts.dbf
? basename(dbf())
accounts.dbf