AKD BASIC User Guide | 5 AKD BASIC Functions
5.19 MID$
General Information
Type Function
Description
Returns a substring of the original string that begins at the specified offset loca-
tion and is of the specified (optional) length.
Syntax
result = MID$(x$, start, [length])
Instructions
Start and Length must both be numeric expressions.
If Length is omitted then MID$() returns a substring that starts at start and goes to the end of
x$.
Example
x$ = "abcdefghi"
Print MID$ (x$, 1, 5) 'prints: abcde
Print MID$ (x$, 6) 'prints: fghi
Related Topics
INSTR() | LEFT$() | LEN() | RIGHT$()
Kollmorgenâ„¢ | March 30, 2012 82