MIDS - source-solutions/HELP GitHub Wiki

MID$


substring = MID$(string, position [, length])

Returns a substring string starting at position, counting from 1. The substring has length length if specified. If length is not specified, the substring extends to the end of the string.

Parameters

  • string is a string expression.
  • position is a numeric expression between 1 and the string length, inclusive.
  • length is a numeric expression in [0 to 255].

Errors

  • string has a number value or position or length have string values: Type mismatch.
  • position or length are not in [-32768 to 32767]: Overflow.
  • position is not in [1 to 255]: Illegal function call.
  • length is not in [0 to 255]: Illegal function call.
⚠️ **GitHub.com Fallback** ⚠️