RIGHTF$
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > String functions > RIGHTF$ |
Description
FAST version of RIGHT$ function working on scalar string variable only!
Return the rightmost n characters of a string.
Syntax
s = RIGHTF$(StringVariable, nBytes)
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
StringVariable |
Variable |
No |
IMPORTANT: a scalar string variable.
This parameter can only be: •a single global or local string variable •a string element of a user defined type (UDT)
|
nBytes |
Numeric |
No |
Number of chars to return |
Remarks
Restrictions
See also
String Handling, RIGHT$, LEFT$, LEFTF$, MID$,
Examples
History
thinBasic Version |
Date |
Changes |
1.12.0 |
2024/07/02 |
Added possibility to have negative values in nBytes parameter |