AMSTRAD CPC464 User Manual page 153

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

LEN
LEN(<s t r i n g e x p r e s s i o n > )
A $ = " A M S T R A D " : P R I N T L E N ( A $ )
7
FUNCTION: Returns a number corresponding to the number of all types of characters, including
spaces, in the <string expression>.
LET
LET <va r i a b l e > = < e x p r e s s i o n >
L E T x=100
COMMAND: A remnant from early BASICS where variable assignments had to be ' seen coming' . No
use apart from providing compatibility with the programs supplied in early BASIC training
manuals. The above example need only be typed:
x=100
using AMSTRAD BASIC.
LINE INPUT
LI N E
I N P U T
[ < # s t r e a m
v a r i a b l e >
L I N E
I N P U T
[ < # s t r e a m e x p r e s s i o n > , ] [;][ q u o t e d
v a r i a b l e >
L I N E I N P U T A $
L I N E I N P U T " N A M E " ; N $
COMMAND: Reads an entire line from the stream indicated. The first optional semicolon suppresses
the echo of carriage return / line feed. The default <stream expression> is, as always, #0 :screen.
Associatedkeywords: R E A D , I N P U T , I N K E Y $ , I N P U T $
LIST
LI S T [ < l i n e n u m b e r r a n g e > ] [ , # < s t r e a m e x p r e s s i o n > ]
L I S T 1 0 0-1 0 0 0 , # 1
COMMAND: List program lines to the given stream. 0 is the default screen, 8 is the printer.
LIST ing may be suspended by pressing [ESC] once, and restarted by pressing the space bar. A
double [ESC] will return BASIC to the direct mode.
Programs may be listed to previously defined windows to assist in debugging programs without
overwriting the entire screen area. Listing may be performed from the start of a program to a given
point, or from a specified line number to the program end, by omitting the first or last numbers in
the line number range,. eg.
L I S T -2 0 0 o r L I S T 3 0-
e x p r e s s i o n > , ] [ ; ] [ q u o t e d
s t r i n g ;
] < s t r i n g
s t r i n g ,
] < s t r i n g

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents