Min - AMSTRAD cpc 6128 User Instruction

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

Advertisement

FUNCTION: Returns a new sub-string, commencing at the <start position> of the
<string expression>, being <sub-string length> characters long.
If
the <sub-string
length> parameter is not specified, the remainder of the <string expression> afJ- er the
<start position> is returned.
If the <start position> is greater than the total length of the <string expression>, then
an empty string is returned. The range of <start position> is 1 to 255. The range of
<sub-string length> is 0 to 255.
Associated keywords: LE
F T
$,
RIG HT
$
MID$
M I D
$
«string variable> , <insertion position> [ , <new string length>] )
10 a$="heLLo"
20 MID$(a$,3,2)="XX"
30 PRINT a$
run
heXXo
=
<new string expression>
COMMAND: Inserts the <new string expression> into the string specified by the
<string variable>, commencing at the dnsert position>, and occupying <new string
length> number of characters.
Note that when using
M ID
$
as a COMMAND, a <string variable> such as a $ must be
used, and NOT a string constant such as
11
h eLL
0
11 •
Associated keywords: LE
FT
$,
RIG
H
T
$
MIN
M I N ( <list of: <numeric expression> )
PRINT MIN(3,6,2.999,8,9,)
2.999
FUNCTION: Returns the
M
I Nimum value from the <list of: <numeric expression>s.
Associated keywords: M A X
Complete List of Keywords
Chapter 3 Page 45

Advertisement

Table of Contents
loading

Table of Contents