Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

RIGHT$

Description

RIGHT$ is a string function that can be used to extract the rightmost charcacters of a given input string. RIGHT$ needs a source string and the number of characters which shall be extracted. It then constucts a new string which contains the requested characters.

Example

Prints the second word of "hello world":

outmode -2
let a$ = "hello-world"
let b$ = right$ (a$,5)
print b$

Remarks

If the number of requested charcters is equal or greater than the number of characters in the source string, the new string is then equal to the source string. See also MID$ ans LEFT$