|
Documenting your program (also called "commenting") allows you to remind yourself about something in your program. Plus, if your program is seen by other people, documenting can help them understand your code. The REM (remark) command enables you to add comments to your program without the text being treated like an instruction.
PRINT "Some text" REM This text is ignored. REM This program clears the output screen, REM and then prints "Some text."
You can add REM to the same line as another command by placing a colon after the first instruction.
PRINT "Text": REM This command prints "Text" to the screen PRINT 534: REM This prints the number 534 to the screen
PRINT "Text" ' This command prints "Text" to the screen PRINT 534 ' This prints the number 534 to the screen Feel free to distribute this tutorial, upload it to your website, link to it from your site, etc. http://www.geocities.com/progsharehouse/qbtutor Mirror: http://development.freeservers.com/qbtutor |