Left.htm 985 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>Left$ (string$, length)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. string$ = any valid string variable <br />
  13. length = a valid integer value up to the length of the string.
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. Use this command to get a certain number of the leftmost letters of a string. You will use this to truncate strings to make them fit somewhere, or to control the number of characters input.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/Left.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. name$="Shane Monroe" <br />
  30. Print "The left 3 letters of your name are: " + Left$(name$,3) <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=Left&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  38. </html>