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$ Statement Details
  ◄Syntax►  ◄Details►  ◄Example►                 ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
MID$ replaces a portion of a string variable with another string.
 
MID$(stringvariable$,start%[,length%])=stringexpression$
    ■ The arguments start% and length% are numeric expressions.
    ■ The argument stringvariable$ is a string variable.
    ■ The argument stringexpression$ can be a string variable,
      string constant, or string expression.
 
Usage Notes
    ■ The optional length refers to the number of characters from the
      argument stringexpression$ that are used in the replacement. If length%
      is omitted, all of stringexpression$ is used. However, regardless of
      whether length% is omitted or included, the replacement of characters
      never goes beyond the original length of stringvariable$.