EasyManua.ls Logo

AMSTRAD CPC464 - Page 156

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...
MERGE
MERGE [<filename>]
MERGE "PLAN"
COMMAND: Merge a program from cassette into the current program memory. It adds the contents
of a file to the current program in memory. If no file name is stated, then BASIC will attempt to
merge the first valid file encountered on tape. If the first character of the filename is a ! , then it is
removed from the filename, and has the effect of suppressesing the usual messages generated by the
cassette reading process.
If you wish to merge a program into memory without overwriting the current program, then the
current program lines should be RENUMbered to a range different from those in the incoming
program.
All variables, User Functions and open files are discarded. ON ERROR GOTO is turned off, a
RESTORE is implemented and the DEFINT, DEFREAL & DEFSTR settings are reset.
Protected files will not merge.
Associatedkeywords: LOAD, CHAIN, CHAIN MERGE
MID$
MID$ (<string>, <integer expression> [, <integer expression>])
A$="AMSTRAD":PRINT MID$(A$,2,4)
MSTR
A$="AMSTRAD":b$=MID$(A$,2,4):PRINTb$
MSTR
COMMAND and FUNCTION: MID$ specifies part of a string (a sub-string) which can be used either
as the destination of an assignment (MID$ as a command) or as an argument in a string expression
(MID$ as a Function). The first <integer expression> specifies the position of the first character of
the sub-string.
The second <integer expression> specifies the length of the sub-string to be returned. If omitted, this
extends to the end of the original string.
Associated keywords: LEFT$ , RIGHT$
MIN
MIN (<list of: <numeric expression> )
PRINT MIN(3,6,2.999,8,9)
2.999
FUNCTION: Extracts the smallest value from the list of numeric expressions
Associated keywords: MAX

Table of Contents

Other manuals for AMSTRAD CPC464

Related product manuals