_SplitPath Function | |
Break a path name into its components.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax FUNCTION _SplitPath(
cPath AS STRING,
cDrive OUT STRING,
cDir OUT STRING,
cName OUT STRING,
cExt OUT STRING
) AS VOID
public static void _SplitPath(
string cPath,
out string cDrive,
out string cDir,
out string cName,
out string cExt
)
Request Example
View SourceParameters
- cPath
- Type: String
The path name to break. - cDrive
- Type: String
The drive letter followed by a colon. - cDir
- Type: String
The directories, including the trailing slash. Forward slashes and backslashes both may be present in <cPath>. Forward slashes (/) are converted to backslashes (\). - cName
- Type: String
The file name, without the extension. - cExt
- Type: String
The extension, including the leading period.
Return Value
Type:
Return Value
Type:
Remarks Remarks
SplitPath() breaks a path name into its components and stores the result in the supplied arguments.
The supplied arguments must have enough space to hold the maximum possible size of the broken components.
If any of the components is missing in the path name, the corresponding argument is truncated to a 0 length.
See Also