AppCtrlScript

MAY Computer

Help

STROCCCOUNT

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

COUNTLINESINFILE

Count the number of occurrences of a specific substring in a given source string.

 

Syntax

[STR]OCCCOUNT <VariableName>, <SourceString>[, <SearchString>][, <CaseSensitive>]

Part

Description

<VariableName> Script variable to store result in.
<Source> Name of the file to count lines for.
<SearchString> Optional search string. If specified then only lines containing the specified string are counted. * can be used to count only lines containing the specified string (*<MyString>*) and starting (<MyString>*) or ending (*<MyString>) with the specified string.
<CaseSensitive> 0|1; if 1 then SearchString parameter is intended for a case sensitive search. Default is 0.