StrExpr may be any string expression. NumExpr1 may be any integer expression with a positive value. NumExpr2 may be any integer expression with a non-negative value.
x$ = "CLEVELAND, OHIO" print "DREAM"; mid$(x$, 6, 4)The example produces the output
DREAMLAND
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber