You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CryoEagle edited this page Dec 26, 2018
·
2 revisions
string_pos
Returns the position of a given sub-string in a string.
Syntax:
string_pos(substr,str)
Argument
Description
string substr
The substring to look for in the string
string str
The string
Returns:Real
Description
This function will return the character position of an instance of a sub-string within a string, or 0 if it's not found at all. One use for this is for filtering words that may be considered offensive, or for finding the correct place to insert some text into another string.