17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GW-BASIC <strong>User's</strong> Guide<br />

RIGHT$ Function<br />

Purpose:<br />

To return the rightmost n characters of string x$.<br />

Syntax:<br />

RIGHT$(x$,n)<br />

Comments:<br />

If n is equal to or greater than LEN(x$), RIGHT$ returns x$. If n equals zero, the null string<br />

(length zero) is returned (see the MID$ and LEFT$ functions).<br />

Examples:<br />

10 A$="DISK BASIC"<br />

20 PRINT RIGHT$(A$, 5)<br />

RUN<br />

BASIC<br />

Prints the rightmost five characters in the A$ string.<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/RIGHTS.html28/03/2004 21.29.34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!