End Function.htm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>End Function</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. This line terminates a FUNCTION structure. Upon reaching this line, Blitz will branch program execution to the next command following the original call to the function. See the FUNCTION command for more information.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/End Function.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; End Function Example <br />
  29. <br />
  30. ; Get the user's name <br />
  31. name$=Input$("Enter Your Name:") <br />
  32. <br />
  33. ; Call a function to print how many letters the name has <br />
  34. numletters(name$); <br />
  35. <br />
  36. ;The program basically ends here, because functions don't run unless called. <br />
  37. <br />
  38. ; The actual function <br />
  39. Function numletters(passedname$) <br />
  40. Print "Your name has " + Len(passedname$) + " letters in it." <br />
  41. End Function <br />
  42. </td>
  43. </tr>
  44. </table>
  45. <br>
  46. <a target=_top href=../index.htm>Index</a><br>
  47. <br>
  48. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=End Function&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  49. </html>