Difference between revisions of "BASENAME()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Disk and File Utilities
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return the base filename from a given file specification
 
Function to return the base filename from a given file specification
Line 32: Line 28:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:04, 26 November 2009

Purpose

Function to return the base filename from a given file specification


Syntax

BASENAME(<expC>)


See Also

DBF(), FMT(), GETENV(), GETLOG(), 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()
/usr/recital/UD/demo/accounts.dbf
? basename(dbf())
accounts.dbf


Products

Recital Server, Recital