%pos() Function

Top  Previous  Next

%pos() function returns the position of a string in another string.

Syntax:

%pos(substring-expression, string-expression)

 

Examples:

%pos('-','AAA-BBB')   returns: 4

 

%set(var1,'cde')

%pos(var1,'abcdefgh') returns: 3

 

%pos('x','abcdefgh')  returns: 0