Navigation:  ThinBASIC Language > thinBasic Functions > String functions >

RIGHT$

Previous pageReturn to chapter overviewNext page

 

Description

 

FAST version of RIGHT$ function working on scalar string variable only!

Return the rightmost n characters of a string.

 

Syntax

 

s = RIGHTF$(StringVariable, nChars)

 

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)

 

nChars

Numeric

No

Number of chars to return

 

Remarks

 

Restrictions

 

See also

 

String Handling, LEFT$, MID$,

 

Examples