Programming Reference Manual
Right
Syntax
Right[$](
S$
,
Len
)
Description
Return the last
Len
chars of
S$
.
Note: A similar function, RightB, returns the last
Len
bytes.
Parameter
Description
S$
Return the right 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
InStr
,
InStrRev
,
Left$
,
Len
,
Mid$
,
Replace$
,
RightB$
,
StringClass.FromLeft
,
StringClass.FromRight
,
StringClass.SubString
.
Example
Sub
Main
Debug
.
Print
Right
$(
"Hello"
,3)
'"llo"
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