LEFT
ls = LEFT (s [,n])
Returns the n
number of leftmost chars of string
s
as string ls
. If n
is not
specified then n = 1.
Example
"abcdef"
s = print LEFT(s) ' Output: a
print LEFT(s, 3) ' Output: abc
Code samples using LEFT
000 hello.bas
002 numeric variables.bas
006 arrays+.bas
2048.bas
2048.bas
3d_torus.bas
3dtorus.bas
7gables.bas
agendus.bas
anomail.bas
another look at trig functions.bas
arc_ui.bas
betrayal: crows ii.bas
bezier_pen.bas
blackbox.bas
Blackbox.bas
blackjack.bas
BlackJack.bas
block.bas
bolmo.bas
btn 21.bas
calc.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
conrec-sb-v01.bas
coordplot.bas
crow.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 LEFT,
please send an email to smallbasic@gmail.com. You can help to improve information about
LEFT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.