bas7advr.hlp (
Topic list)
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$.