Locate.htm 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>Locate x,y</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. x=x coordinate on the screen <br />
  13. y=y coordinate on the screen
  14. </td>
  15. </tr>
  16. </table>
  17. <h1>Description</h1>
  18. <table>
  19. <tr>
  20. <td>
  21. Sometimes you want to place the PRINT and Input$ commands at a specific location on the screen. This command locates the 'cursor' to the designated location.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/Locate.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. ; Locate example <br />
  30. <br />
  31. strName$=Input$("What is your name?") <br />
  32. <br />
  33. Locate 100,200 <br />
  34. <br />
  35. Print "Hello there, " + strName$ <br />
  36. <br />
  37. While Not KeyHit(1) <br />
  38. Wend <br />
  39. </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <a target=_top href=../index.htm>Index</a><br>
  44. <br>
  45. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Locate&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  46. </html>