|
Using the Disp command, you have very little control of where the text appears on the screen. If you want to place text at a certain point you must use the Output( command. Here is how it works:
Output( displays text ,or the value of a vairable, on the home screen. To control where it appears, you tell it what row and column to begin writing the text at. So, if you want to display the word "HELLO" in the middle of the screen you would do this:
Breakdown of code:
- ClrHome
- Clear the home screen.
- Output(5,7,"HELLO")
- Display the text "HELLO" on row 5 and column 7.
Program output:
Note: There are 8 rows and 16 columns.
|