IndexOf

Overview

Returns character position where string occurs in the variable. Index numbering begins with 1.

Syntax

IndexOf(1, 2)

Function Properties

OrdinalTypeDescription
1stringRequiredVariable to analyze
2stringRequiredCharacter position to return

Usage

Given @abc=You will love our product.

System returns:

For the code below, the system returns 1: