Files
BlitzNext/_release/help/commands/2d_commands/Right.htm
T
2014-02-26 16:08:39 +13:00

7 lines
1.3 KiB
HTML

<html><head><title>Command: Right$ </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;Right$ (string$, length)&nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Return a specified number of characters from the rightmost side of a string.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>string$ = any valid string variable<br>
length = the number of characters on the right to return<br>
</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>You can retrieve a certain number of characters from the rightmost side of a string. See the example.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>name$="Bill Wallace"<br>
Print "The last 4 letters of your name are: " + Right$(name$,4)<br>
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
</html>