FullPath Function
|
|
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.24 GA
Syntax FUNCTION FullPath(
cFileName1 AS STRING,
cFileName2 AS STRING
) AS STRING
public static string FullPath(
string cFileName1,
[DefaultParameterValueAttribute("", 0)] string cFileName2
) Request Example
View SourceParameters
- cFileName1
- Type: String
Specifies the file for which X# searches.
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.
- cFileName2
- Type: String
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