MID
r = MID (s, start [,length])
Returns the substring of string s
starting from the
position start
with length length
. If the
length parameter is omitted, MID returns the whole string from the
position start
.
Example
"abcd"
s = print MID(s, 3) ' Output: cd
print MID(s, 3, 1) ' Output: c
Code samples using MID
3d_torus.bas
3dtorus.bas
7gables.bas
arc_ui.bas
ascii 3d.bas
base64.bas
betrayal: crows ii.bas
biorythms.bas
block.bas
bulls and cows.bas
calc.bas
Capitol pal test.bas
chess.bas
chess.bas
ciretose.bas
coordplot.bas
crgb.bas
dia de una fecha.bas
dmsareaplot.bas
dogstar5.bas
easter_mallen.bas
Eliza.bas
eliza.bas
esoteric.bas
evdemo.bas
fibanacci3.bas
g1 Life.bas
g2 Life.bas
g3 Life.bas
String
ASC
BCS
BIN
CBS
CHOP
CHR
DISCLOSE
ENCLOSE
FORMAT
HEX
INSTR
JOIN
LCASE
LEFT
LEFTOF
LEFTOFLAST
LOWER
LTRIM
MID
OCT
REPLACE
RIGHT
RIGHTOF
RIGHTOFLAST
RINSTR
RTRIM
SINPUT
SPACE
SPC
SPLIT
SPRINT
SQUEEZE
STR
STRING
TRANSLATE
TRIM
UCASE
UPPER
VAL
If there is insufficient information on this page and you wish learn more about MID,
please send an email to smallbasic@gmail.com. You can help to improve information about
MID by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.