Zoomed Image

AMSX Scripting Language - Command : Instr

Summary

Find the position of a substring within a string

Description

Returns the 1-based character position of the search string within the source string. Returns 0 if not found. Result is placed in the result buffer as a string.

Parameters

ParameterDescription
cmdSource string to search within
Argument 0Substring to search for

Syntax


Instr "Source string to search within", "Substring to search for"

Return to the AMSX Command Reference