Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • StringPos()


    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.





    local nPos = StringPos("Erika Mustermann", "Muster")
    PBXScript.OutputTrace("nPos = " .. tostring(nPos))
    --> nPos = 7



    Tom Wellige


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.