Shop OBEX P1 Docs P2 Docs Learn Events
CLS resurved word in PBASIC — Parallax Forums

CLS resurved word in PBASIC

tucson.warrentucson.warren Posts: 8
edited 2012-09-02 23:14 in General Discussion
I'm very new to programming and am working my way through the Board of Education Package. I cannot find definitions for reserved words in PBASIC. I ran across the CLS word placed after the DEBUG command. Can anyone tell me what it means? Also is there a place where I can find the definition of what Reserved word mean? The Basic Stamp Syntax Reference Manual only lists the works without further explanation. Any help would be most appreciated. Warren

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-09-02 23:08
    CLS is the name of a constant whose value is zero. When sent to the DEBUG screen, it has the effect of clearing the screen (CLear Screen) and positioning the cursor in the upper left-hand corner. In the PBASIC manual, under DEBUG, there is a list of other such named constants that perform other tasks when sent to the DEBUG screen. Their names are among the reserved words that also include the PBASIC statement names, such as IF, ELSE, WHILE, etc.

    -Phil
  • tucson.warrentucson.warren Posts: 8
    edited 2012-09-02 23:14
    Phil- Thank you for such a quick and helpful response. Best regards, warren
Sign In or Register to comment.