StrStrPos

Finds the first occurrence of a character within a string.

Function Group Execution Windows Embedded Thin Client
StrStrPos String Synchronous Supported Supported Supported

Syntax

StrStrPos( strSource, strCharSequence )
strSource
The source string.
strCharSequence
The reference string.

Returned value

Returns an integer corresponding to the first occurrence of a character within the source string.

Examples

Tag Name Expression
Tag StrStrPos( "Studio version 7.0", "i" ) // Returned value = 4
Tag StrStrPos( "Technical Reference", "a" ) // Returned value = 7
Note: The first character in the string assigned the value 0.