WHEREIS()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return the path for the specified file

Syntax

WHEREIS(<filename>)

See Also

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

Description

The WHEREIS() function returns the path containing the specified <filename>. The path, including the file name, is returned as a character string. WHEREIS() 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. WHEREIS() returns an empty string if <filename> is not found in the path.

Example

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