PBasic Colon ":" quesitons
Bob
Posts: 9
Sorry, but I havent' been able to find the answer to this question in the PBasic manual -
1) What does the colon do in the following line of code?
idx = 6 : fldWidth = 2
I assume that it is the equivalent of a "new line" command, and that it is inserted in this code (N&V #103 Jon Williams) to make the code more readable.· Again, I can't find a reference to this usage.· Any comments?
2) When labels are used in PBaisc they are typically followed by a colon· (i.e. "Label:").· The question, "Is this colon just stylistic, or does it signal something to the PBasic Interpreter / Compiler?"
Thanks in advance for any help.
Bob Jacoby
Drying Out in Florida
·
1) What does the colon do in the following line of code?
idx = 6 : fldWidth = 2
I assume that it is the equivalent of a "new line" command, and that it is inserted in this code (N&V #103 Jon Williams) to make the code more readable.· Again, I can't find a reference to this usage.· Any comments?
2) When labels are used in PBaisc they are typically followed by a colon· (i.e. "Label:").· The question, "Is this colon just stylistic, or does it signal something to the PBasic Interpreter / Compiler?"
Thanks in advance for any help.
Bob Jacoby
Drying Out in Florida
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Visit the Piggyback Page
http://hometown.aol.com/newzed/index.html
·