Null.htm 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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>Null</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Designates a Null Type object. Useful for making a Type variable point to nothing or checking if a Type object exists. Also, useful for checking that there are still objects left on the end of a Type list using the After command. <br />
  21. <br />
  22. <br />
  23. Can used for testing and setting.
  24. <br>
  25. <br>
  26. See also: <a class=small href=Type.htm>Type</a>, <a class=small href=New.htm>New</a>, <a class=small href=Delete.htm>Delete</a>, <a class=small href=After.htm>After</a>, <a class=small href=Before.htm>Before</a>, <a class=small href=First.htm>First</a>, <a class=small href=Last.htm>Last</a>.
  27. </td>
  28. </tr>
  29. </table>
  30. <h1><a href=../2d_examples/Null.bb>Example</a></h1>
  31. <table>
  32. <tr>
  33. <td>
  34. ; Null example <br />
  35. <br />
  36. Type Alien <br />
  37. Field x,y <br />
  38. End Type <br />
  39. <br />
  40. a.Alien = New Alien <br />
  41. If a <> Null Then Print "Alien exists!" <br />
  42. Delete a <br />
  43. if a = Null Then Print "Alien gone!"
  44. </td>
  45. </tr>
  46. </table>
  47. <br>
  48. <a target=_top href=../index.htm>Index</a><br>
  49. <br>
  50. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Null&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  51. </html>