bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MID$ Function Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
MID$ replaces a portion of a string variable with another string.
 
MID$(stringexpression$,start%[,length%])
    ■ If length% is omitted or if there are fewer than length% characters
      in the string (including the start character), the MID$ function
      returns all characters from the position start% to the end of
      the string.
    ■ If start% is greater than the number of characters in stringexpression$,
      MID$ returns a null string.
    ■ Use the LEN function to find the number of characters in
      stringexpression$.