instr

Return an integer value specifying the start position of the first occurrence of one string within another. The search for the substring begins at a specified position.

Syntax

integer instr(string string1, string string2, integer startLoc)

Parameters

Return Value

Returns the position of the first occurrence of string2 in the search area of string1. The search area is defined as the part of string1 starting from the startLoc index to the end. Returns zero if string2 is not found.

Example

Test Lines

Result


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400