MIDS - source-solutions/HELP GitHub Wiki
substring = MID$(string, position [, length])
Returns a substring string
starting at position
, counting from 1
. The substring has length length
if specified. If length
is not specified, the substring
extends to the end of the string.
-
string
is a string expression. -
position
is a numeric expression between1
and the string length, inclusive. -
length
is a numeric expression in[0 to 255]
.
-
string
has a number value or position orlength
have string values: Type mismatch. -
position
orlength
are not in[-32768 to 32767]
: Overflow. -
position
is not in[1 to 255]
: Illegal function call. -
length
is not in[0 to 255]
: Illegal function call.