Trim.htm 819 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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>Trim$( string$ )</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. string$ - any valid string
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This function removes leading and trailing spaces from the specified string.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/Trim.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. Graphics 640,480,0,2 <br />
  29. <br />
  30. a$ = " Weeeeee " <br />
  31. <br />
  32. Text 0,0,a$ <br />
  33. Text 0,20,Trim$(a$) <br />
  34. <br />
  35. WaitKey()
  36. </td>
  37. </tr>
  38. </table>
  39. <br>
  40. <a target=_top href=../index.htm>Index</a><br>
  41. <br>
  42. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Trim&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  43. </html>