Lua SwxWare v13.10
This helper function search the first occurance of a substring within a string an returns its position.
local nPos = StringPos(str, substr)
This function returns a number value.
Example:
local nPos = StringPos("Erika Mustermann", "Muster") PBXScript.OutputTrace("nPos = " .. tostring(nPos)) --> nPos = 7
By Tom Wellige