Click or drag to resize

_SplitPath Function

X#
Break a path name into its components.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION _SplitPath(
	cPath AS STRING,
	cDrive OUT STRING,
	cDir OUT STRING,
	cName OUT STRING,
	cExt OUT STRING
) AS VOID
Request Example View Source

Parameters

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