FULLPATH()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return the path for the specified file

Syntax

FULLPATH(<filename>)

See Also

BASENAME(), DBF(), DEFAULT(), DEFAULTEXT(), FORCEEXT(), FORCEPATH(), GETENV(), JUSTDRIVE(), JUSTEXT(), JUSTFNAME(), JUSTPATH(), JUSTSTEM(), NDX(), PATH(), SET FULLPATH, SET PATH, SYS(), WHEREIS()

Description

The FULLPATH() function returns the path containing the specified <filename>. The path, including the file name, is returned as a character string. FULLPATH() searches for <filename> in the current path. This includes the current directory, the Library directory and directories specified using the SET PATH command or the App Additional file path setting. FULLPATH() returns an empty string if <filename> is not found in the path.

Example

? fullpath("helloworld.prg")
C:\lianja\library\helloworld.prg