RIGHT
r = RIGHT (s[,n])
Returns the n
number of rightmost chars of string
s
. If n
is not specified
n = 1
.
Example
"abcdef"
s =
print right(s) ' Output: f
print right(s,2) ' Output: ef
print right(s,10) ' Output: abcdef
Code samples using RIGHT
000 hello.bas
001 3 ways to print hello 5 times.bas
002 numeric variables.bas
003 conditional branching.bas
004 loops.bas
005 challenge.bas
006 arrays+.bas
2048.bas
2048.bas
3d_torus.bas
3dtorus.bas
7gables.bas
another look at trig functions.bas
Balleta 2-11-15.bas
base64.bas
blackbox.bas
Blackbox.bas
block.bas
bolmo.bas
bowling7.bas
calc.bas
cgi_counter.bas
Chaos_1xt.bas
Chaos_NPhase.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
colors1.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 RIGHT,
please send an email to smallbasic@gmail.com. You can help to improve information about
RIGHT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.