Right.htm 895 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>Right$ (string$, length)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. string$ = any valid string variable <br />
  13. length = the number of characters on the right to return
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. You can retrieve a certain number of characters from the rightmost side of a string. See the example.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/Right.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. name$="Bill Wallace" <br />
  30. Print "The last 4 letters of your name are: " + Right$(name$,4) <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=Right&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  38. </html>