qb45advr.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
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
MID$ Function Details
Syntax
MID$(stringexpression,start[,length])
Argument Description
stringexpression The string expression that the substring is
extracted from. This can be any string
expression.
start The character position in stringexpression where
the substring starts.
length The number of characters to extract.
The arguments start and length must be in the range 1 to 32,767. If length
is omitted or if there are fewer than length characters to the right of the
start character, the MID$ function returns all characters to the right of
the start character.
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.