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
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige