AT&T 6300 Programmer's Manual page 442

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

RIGHT$
Function
Syntax
string
length
Remarks
Example
7-286
Returns a substring from a specified string,
extracting its rightmost characters.
RIGHT$ (string, length)
is a string expression whose value is the original string from
which a substring is to be returned
is a numeric expression rounded to the nearest integer,
whose value (from 0 to 255) represents the length of the
returned string
If "length" is greater or equal to LEN(string),
then the entire original string is returned.
When length=O, the null string (length of zero)
is returned.
10 AS
=
uTHIS IS GWBASIC"
20
PRINT RIGHTS(AS,5)
RUN
BASIC
Ok
Also see the LEFT$ and MID$ functions in
this chapter.

Advertisement

Table of Contents
loading

Table of Contents