Programming Reference Manual
Left
Syntax
Left[$](
S$
,
Len
)
Description
Return a string from
S$
with only the
Len
chars.
Note: A similar function, LeftB, returns the first
Len
bytes.
Parameter
Description
S$
Return the left portion of this string value. If this value is
Null
then
Null
is returned.
Len
Return this many chars. If
S$
is shorter than that then just return
S$
.
See Also
LeftB$
,
InStr
,
InStrRev
,
Len
,
Mid$
,
Replace$
,
Right$
,
StringClass.FromLeft
,
StringClass.FromRight
,
StringClass.SubString
.
Example
Sub
Main
Debug
.
Print
Left
$(
"Hello"
,2)
'"He"
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Variable Info
Constant
Math
Financial
Strings
Strings
Asc
AscB
AscW
Chr
ChrB
ChrW
Format
FmtName
InStr
InStrB
InStrRev
Join
LCase
Left
LeftB
Len
LenB
LTrim
Mid
MidB
Replace
ReplaceString
Right
RightB
RTrim
Space
Split
StrComp
StrConv
String
StrReverse
Trim
UCase
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator