Tabulation Function - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

58
20
MID $
B$
=
30
C$ = RIGHT$ (X$, N)
RIGHT $
40
SPACE $
D$ = SPACE$ (N)
50
E$ = STRING $
STRING $
(" * " ,
60
F$ = CHR $ (A)
CHR $
70
ASC
A = ASC (X$)
80 N$ = STR$ (I)
STR$
90
VAL
I = VAL (N$)
100
LX = LEN (X$)
LEN
110
LS = LEN (X$ + Y$)

3. 1 . 20 Tabulation function

1 10
I
TAB
PRINT TAB (X) ; A
Substitutes the N characters following the Mth character from the
MID$ (X$ , M, N)
beginning of string variable X$ into string variable B$.
Substitutes the last N characters of string variable X$ into string
variable C$.
Substitutes the N spaces into string variable D$.
10)
Substitutes the ten repetitions of " * " into string variable E$.
Substitutes the character corresponding to the ASCII code in
numeric variable A into string variable F $ . A may be either a con­
stant, a variable or
Substitutes the ASCII code (in decimal) corresponding to the first
character of string variable X$ into numeric variable A.
Converts the numeric value of numeric variable I into string of
numerals and substitutes it into string variable N$.
Converts string of numerals contained in string variable N$ into the
numeric data as is and substitutes it into numeric variable I.
Substitutes the length (number of bytes) of string variable X$ into
numeric variable LX.
Substitutes the sum of the lengths (number of bytes) of string
variable X$ and Y$ into numeric variable LS.
I
isplays the value of variable A at the Xth position from the left
s1de.
an
expression.
I

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents