Skip to content
Andrew Owen edited this page May 30, 2023 · 1 revision

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.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally