Text Code - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

Text Code

Description:

This is the way the code of a BASIC program looks, when opened in NOTEPAD. ... 100 ' short exercise. 110 ' program date: Feb 28,2005. 130 PRINT ' ... – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 7
Provided by: clas79
Category:
Tags: code | text

less

Transcript and Presenter's Notes

Title: Text Code


1
Text Code
ÿd Ù short exercise n Ù program date Feb
28,2005 ä "
" ü NME ç "Ed Kellner"
DDT ç "02/28/05" ,  "" NME, DDT,"" iª
"
"
This is the way the code of a BASIC program
looks, when opened in NOTEPAD. The code is in a
condensed form.
2
Text Code
  • We want a method to be able to save the program
    code so we can look at it using a standard, ASCII
    text editor.

100 ' short exercise 110 ' program date Feb
28,2005 130 PRINT "
" 140 NME "Ed Kellner" 150
DDT "02/28/05" 160 PRINT "" NME,
DDT,"" 170 PRINT "
"
3
Text Code
  • Saving program code from a BASIC editor

SAVElabx
  • To save program code is ASCII format, we need
    to tell the BASIC editor to convert it to ASCII
    at the SAVE command

SAVEltfile name.extgt, a ? a means convert to
ASCII character SAVElabx.bas,a
4
Text Code
  • When using a text editor for the code, changes
    made to the text version are NOT automatically
    saved to the BASIC editor.
  • You must LOAD the new version into BASIC to test
    it.

5
Text Code
  • Opening the code in NOTEPAD (do not use WORD,
    WORDSTAR, or even WORDPAD. These to do not
    always save documents in pure ASCII text format.

6
Text Code
Write a Comment
User Comments (0)
About PowerShow.com