Click or drag to resize

FullPath Function

X#
-- todo --
Returns the path to a specified file or the path relative to another file.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION FullPath(
	cFileName1,
	uPath
) AS STRING CLIPPER
Request Example View Source

Parameters

cFileName1 (Optional)
Type: Usual
Specifies the file for which X# searches.
Note Note
Be sure to include the file name extension.
If the file is located in the X# path, the path is returned with the file name. You can specify the X# path using the Set PATH command. If the file cannot be located in the X# path, FullPath( ) returns the current directory the path and file name as if the file was located in the current default directory.
uPath (Optional)
Type: Usual
Specifies to search the MS-DOS path instead of the X# path. nMSDOSPath can have any numeric value. If the file cannot be located in the MS-DOS path, FullPath( ) returns the path and the file name as if the file was located in the current default directory.

Return Value

Type: String
Character. FullPath( ) returns a file path.
Remarks
Use the FILE( ) function to verify that the file actually exists; otherwise, if the file does not exist, the function returns the file name with the current directory.
See Also