AMSTRAD CPC464 User Manual page 156

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

Advertisement

MERGE
M E R G E [ < f i l e n a m e > ]
M E R G E " P L A N "
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 RENUM bered 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
DEFSTR settings are reset.
,
&
DEFREAL
Protected files will not merge.
Associatedkeywords: LOAD, CHAIN, CHAIN MERGE
MID$
MID$ ( < s t r i n g > , < i n t e g e r e x p r e s s i o n > [ , < i n t e g e r e x p r e s s i o n > ] )
A $ = " A M S T R A D " : P R I N T M I D $ ( A $ , 2 , 4 )
MSTR
A $ = " A M S T R A D " : b $ = M I D $ ( A $ , 2 , 4 ) : P R I N T b $
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
(MI D$ 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
M I N ( < l i s t o f : < n u m e r i c e x p r e s s i o n > )
P R I N T M I N ( 3 , 6 , 2 . 9 9 9 , 8 , 9 )
2.999
FUNCTION: Extracts the smallest value from the list of numeric expressions
Associated keywords: MAX

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents