共用方式為


FULLPATH( ) Function

Returns the path to a specified file or the path relative to another file.

FULLPATH(cFileName1 [, nMSDOSPath | cFileName2])

Return Values

Character

Parameters

  • cFileName1
    Specifies the file for which Visual FoxPro searches. Be sure to include the file name extension.

    If the file is located in the Visual FoxPro path, the path is returned with the file name. The Visual FoxPro path can be specified with SET PATH.

  • nMSDOSPath
    Specifies that the MS-DOS path is searched instead of the Visual FoxPro path. nMSDOSPath can have any numeric value. If the file can't be located in the MS-DOS path, a path and the file name are returned as if the file had been found in the current default directory.

  • cFileName2
    Specifies a second file name to search for. Be sure to include the file name extension. FULLPATH( ) returns the path for the first file relative to the second file.

See Also

DBF( ) | FILE( ) | LOCFILE( ) | SYS(2014) - Minimum Path