## ALP Programming Guide and Reference

[prev][next][parent][TOC]

### INSTR (Search In String For Value)

INSTR searches a specified String for an occurrence of a given Sub-String and assigns its position (1-based) to Name. The search is case sensitive. Start is the position in String to start the search for Sub-String. If Start is not given, it is assumed to be 1 (the start of the string). If Sub-String is not found, the position assigned to Name is 0.

Syntax

    Name   INSTR   [ Start , ] String , Sub - String

Remarks

INSTR assigns the position value to a name as if it were a numeric equate.

Example

    pos   INSTR   < person > ,   < son >