Jump to content

- String Helper Functions

- # StringMid()

  Followers 0

  Lua SwxWare v13.10

  This helper function returns a given number of characters from a given position from within a given string.

      local sMid = StringMid(str, pos, len)

  This function returns a string value.

  Example:

      local sMid = StringMid("Erika Mustermann", 7, 6)

      PBXScript.OutputTrace("sMid = " .. sMid)

      --> sMid = Muster

  By Tom Wellige

  - June 9, 2022
  Share
  Share
  Followers 0
  Previous Page StringLTrim()
  Next Page StringPos()

## 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.