Count(
     path:path
)
int

Arguments

path

Any path.

Return value

Number of path components.

Description

Returns the number of components in the path.

Example:

p: path = "C:\Windows\System32";
Output( Count(p) );
--> 3

See also:
IsParent
Parent




Count(
     str:string,
     str:substring,
     [str:flags]
)
int

Arguments

string

String to search.

substring

Sub-string to search for.

flags

Optional. Flags.

Return value

Number of substring matches.

Description

Returns the number of times substring is found in string.

The optional flag c makes the search case-sensitive.

Example:

str = "Hello world";
Output( Count(str, "l") );
--> 3

See also:
InStr