Line Input - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

LINE INPUT
L I NE IN PUT
[#
<stream expression> ,][;][ <quoted string> <separator>]
<string variable>
10 LINE INPUT "Type a Line of text";a$
20 CLS
30 PRINT "The variabLe a$ now equaLs:-"
40
PRINT a$
run
COMMAND: Accepts input of an entire line of text from the stream indicated, (from
stream
#
0 if not specified). The first, optional semic'olon [;] suppresses the carriage
return/line feed that will otherwise occur after the command is executed.
The <separator> must either be a semicolon or comma. A semicolon causes a question
mark to be displayed; a comma suppresses the question mark.
L IN E IN PUT from the keyboard is terminated by pressing the
[RETURN]
key.
L IN E IN PUT from disc (or cassette) stream # 9 is terminated by a received
carriage return, or by the <string variable> being assigned 255 characters, whichever
is the sooner.
Associated keywords: I N PUT
LIST
LIS T [<line number range>][,
#
<stream expression>]
LIST 100-1000,#1
COMMAND: Lists program lines to the given stream. Stream
#
0 is the default
screen stream, and
#
8 is the printer. LIS Ting may be paused by pressing [ESC]
once, and re-started by pressing the space bar. Pressing [ESC] twice will abandon the
listing and return to direct mode.
The first or last number in the <line number range> may be omitted to indicate
'" "from the beginning of the program', or'"" to the end of the program', i.e:
LIST -200
Chapter 3 Page 40
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents