BB___RIGHT

=RIGHT$= toc

Description
> Returns the specified number of characters starting from the right side of a string.

> See also LEFT$ and MID$.

Syntax

 * 1) right$(//string, number//)

Hints

 * 1) If number is 0, an empty string ("") is returned.
 * 2) If number is the length of the string or greater, the full string will be returned.

Example
code format="lb" ' Check birthdate for qualifying

input "Enter birthdate as mm/dd/yyyy: "; b$   year = val(right$(b$, 4)) if year < 1970 then print "Sorry. Too old." print "Perhaps checkers would be nice?" else print "OK. You're in." print "Pick up some equipment and meet us on the field." end if

end code

Useful Functions
code format="lb" ' Place a useful function using this command here code