Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

StrStrPos

  • Last UpdatedOct 29, 2026
  • 1 minute read

Finds the first occurrence of a character within a string.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

StrStrPos

String

Synchronous

Yes

Supported

Supported

Supported (see Notes below)

Supported

Supported

Syntax

StrStrPos(strSource, strCharSequence)

strSource

The source string.

strCharSequence

The reference string.

Return value

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

Note: The first character in the string assigned the value 0.

Notes

When this function is used in a project running on IoT View, it supports only single-byte Unicode characters (up to U+007F). Multi-byte Unicode characters are not supported at this time.

Examples

Tag Name

Expression

Tag

StrStrPos("Studio version 7.0", "i") // Return value = 4

Tag

StrStrPos("Technical Reference", "a") // Return value = 7

In This Topic
Related Links