INSTR

This function determines the position of the first occurrence of one string within another string.

INSTR(Start , String1 , String2)


PARAMETERS

start

Optional. Numeric expression that sets the starting position for each search. Must be at least 1.

string1

Required. String expression being searched.

string2

Required. String expression being searched for.

Example:
Display a message if the value contained in TEXTBOX1 is found in TEXTBOX2, otherwise, display a message saying “NOPE”

TEST(INSTR(1,~text2~,~text1~)//>//0)
MESSAGE("YES! TEXTBOX1 is contained in TEXTBOX2"// ”YES”)
EXIT()
ENDTEST()
MESSAGE(“NOPE”//”NO”)