Programming Reference Manual
LeftB
Syntax
LeftB[$](
S$
,
Len
)
Description
Return a string from
S$
with only the
Len
bytes.
Note: A similar function, Left, returns the first
Len
characters.
Parameter
Description
S$
Return the left portion of this string value. If this value is
Null
then
Null
is returned.
Len
Return this many bytes. If
S$
is shorter than that then just return
S$
.
See Also
Left$
,
InStr
,
InStrRev
,
LenB
,
MidB$
,
Replace$
,
RightB$
,
StringClass.FromLeft
,
StringClass.FromRight
,
StringClass.SubString
.
Example
Sub
Main
Debug
.
Print
LeftB
$(
"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