LSet.htm 1015 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>LSet$ (string$, length)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. string$ = any valid string or string variable <br />
  13. length = how long you want the new string to be (including padding)
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. 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 left justified.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/LSet.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. name$="Shane R. Monroe" <br />
  30. Print "New Padded Name: '" + LSet$(name$,40) + "'" <br />
  31. </td>
  32. </tr>
  33. </table>
  34. <br>
  35. <a target=_top href=../index.htm>Index</a><br>
  36. <br>
  37. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=LSet&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  38. </html>