Site hosted by Angelfire.com: Build your free website today!
NAME
  MID$ Function and Statement

SYNOPSIS
  MID$(stringexpression$,start%[,length%])
  MID$(stringvariable$,start%[,length%])=stringexpression$
      o stringexpression$    The string from which the MID$ function returns
                             a substring, or the replacement string used by the
                             MID$ statement. It can be any string expression.
      o start%               The position of the first character in the
                             substring being returned or replaced.
      o length%              The number of characters in the substring. If the
                             length is omitted, MID$ returns or replaces all
                             characters to the right of the start position.
      o stringvariable$      The string variable being modified by the MID$
                             statement.

DESCRIPTION
  The MID$ function returns part of a string (a substring).
  The MID$ statement replaces part of a string variable with another string.

  Example:
      a$ = "Where is Paris?"
      PRINT MID$(a$, 10, 5)       'Output is:  Paris
      Text$ = "Paris, France"
      PRINT Text$                 'Output is:  Paris, France
      MID$(Text$, 8) = "Texas "
      PRINT Text$                 'Output is:  Paris, Texas

SEE ALSO
  LEFT$ RIGHT$ LEN