CountOfPaths - cWorkspace
Returns the number of paths present in a string of paths
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| sPaths | String | a semi-colon delimited string containing one or more paths |
Syntax
Function CountOfPaths String sPaths Returns Integer
Call Example
Get CountOfPaths sPaths to IntegerVariable
Description
CountOfPaths returns the number of paths present in a string of paths. Paths are delimited by semi-colons. So, for example, if sPaths contained "..\AppSrc;c:\", then CountOfPaths would return 2.
Once you know the number of paths, you can enumerate through them using PathAtIndex.
Return Value
Returns the number of paths.