- ACLS:CLEAR:CLS 'Clear our setup
- RESTORE @MSGDATA 'This will load the data after @MSGDATA
- READ MSGCOUNT 'This will read the first variable stored in DATA, and that is our message count (3)
- FOR LOOP = 1 TO MSGCOUNT ' Loop through our data table
- READ MSGX, MSGY ' This will read the X and Y locations of where our message should be printed into the variables MSGX and MSGY
- READ MESSAGE$ ' Read the message string
- LOCATE MSGX, MSGY 'Set our cursor to the stored X/Y location
- PRINT MESSAGE$ ' Print off our message
- NEXT LOOP
- END
- @MSGDATA 'This is the label for our data table
- DATA 3 'This will store the #3, our message count
- DATA 0,0,"Hello" 'This will store the x, y, and string to print
- DATA 1,1,"How are you?"
- DATA 4,3,"Goodbye"
QR Code for this Tutorial
Homework
Topic 17 - Declarations and Assignment Commands
- CLEAR
Topic 21 - Read
- READ
- DATA
- RESTORE
No comments:
Post a Comment