Referring to your tutorial, Bob...

by rALPH (no login)

I noticed that you used a lot of LOCATEs in your tutorial, for instance, in your SUB LessonIDE. By testing some ideas that occurred to me, I wrote these few lines of code, which seem to work well, and could simplify any future work you might do in this respect. What do you think?

Code lines:

CLS
LOCATE 10: c = 20
LOCATE , c: PRINT "Hello there, Bob!"
LOCATE , c: PRINT "What do you think about this method?"
LOCATE , c: PRINT
LOCATE , c: PRINT "Notice that you just have to use one"
LOCATE , c: PRINT "LOCATE 10 at the beginning, and each string"
LOCATE , c: PRINT "will simply print on the following line, so "
LOCATE , c: PRINT "you can skip using the comlplete LOCATE row, column"
LOCATE , c: PRINT "command, just a minimum LOCATE ,c statement, where"
LOCATE , c: PRINT "you can vary c until you get a good appearance."
LOCATE , c: PRINT
LOCATE , c: PRINT "And, since it is so simple to start out copying"
LOCATE , c: PRINT "the 'LOCATE , c: PRINT' part, we can start out by"
LOCATE , c: PRINT "copying some 15 or so, adding strings or, to skip"
LOCATE , c: PRINT "a line, just leaving that part as is."

Posted on May 17, 2008, 3:19 PM
from IP address 66.170.223.178

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
* Minor point, but he could have put the text in a file to read also. on May 17
Pretty good, Ralph... on May 17
 Re:TheBob's TutorialRalph on May 17
  Thanks for that... on May 18
   Here's my next hurdle:-(Ralph on May 18
    * Make sure you are running it full-screen, Ralph.The Universe on May 18
     Re: Make sure you are running it full-screen, Ralph.Ralph on May 18
    Please correct wrong code!Ralph on May 18
    Ralph, you have just stumbled across the bane of QBasic programmers... on May 19
     Who needs blinking text when we have rALPH? on May 19
      fALPH? Really, Ted, I never expect YOU to do such an error!Ralph on May 19
       * Falph? He spelled it with a lowercase "R"... on May 19
        *I was waiting to see if Ted would catch it! I think he just ignored it.Ralph on May 20
         * What's that Falph? on May 20
          *LOL! I have now changed my name back to Ralph. Please take notice, TedRalpj on May 21
           * OK, Ralpj on May 21
            *I like Abbot and Costello bits as much as the next guy but this has got to SYSTEM.Pete on May 21
             * More like "Our Gang" I think. Ask Alralpha......... on May 21
     Thanks, Bob, . . .Ralph on May 19