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

5 lines
1.5 KiB
HTML

<html><head><title>Command: RSet$ </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;RSet$ (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>Pads a string with spaces to a specified value, right aligning the 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 or string variable<br>
length = how long you want the new string to be (including padding)<br></td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>If you have a string that is say, 10 letters long, but you want to make it a full 25 letters, padding the rest of the string with spaces, this command will do so, leaving the original string value right justified. You could use this to pad your high score names to make sure all are the same width in characters.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>name$="Shane R. Monroe"<br>
Print "New Padded Name: '" + RSet$(name$,40) + "'"<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
</html>