Input.htm 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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>Input$ (prompt$)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. prompt$ = any valid string (optional)
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This command will retrieve a string value from the user with an optional prompt on the screen (if not in a graphic mode) or on the current drawing buffer being used by the program. Usually you will assign this command's value to a string for later use.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/Input.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; Get the user's name and print a welcome <br />
  29. <br />
  30. name$=Input$("What is your name?") <br />
  31. Write "Hello there, " + name$ + "!" <br />
  32. </td>
  33. </tr>
  34. </table>
  35. <br>
  36. <a target=_top href=../index.htm>Index</a><br>
  37. <br>
  38. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Input&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  39. </html>