EasyManua.ls Logo

AMSTRAD CPC464 - Page 153

AMSTRAD CPC464
249 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LEN
LEN(<string expression>)
A$=“AMSTRAD”:PRINT LEN(A$)
7
FUNCTION: Returns a number corresponding to the number of all types of characters, including
spaces, in the <string expression>.
LET
LET <variable>=<expression>
LET 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
LINE INPUT [<#stream expression>,][;][quoted string; ]<string
variable>
LINE INPUT [<#stream expression>,][;][quoted string, ]<string
variable>
LINE INPUT A$
LINE INPUT “NAME”; 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: READ, INPUT, INKEY$, INPUT$
LIST
LIST [<line number range>][,#<stream expression>]
LIST 100-1000,#1
COMMAND: List program lines to the given stream. 0 is the default screen, 8 is the printer.
LISTing 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.
LIST -200 or LIST 30-

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals