LEFTOF
s = LEFTOF (s1, s2)
Returns the left part of s1
at the position of the first
occurrence of the string s2
in string s1
. If
s2
does not occure in string s1
, an empty
string will be returned.
Example
"abcdef"
s1 = "de"
s2 = print LEFTOF(s1, s2) ' Output: abc
Code samples using LEFTOF
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 LEFTOF,
please send an email to smallbasic@gmail.com. You can help to improve information about
LEFTOF by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.