Sharp MZ-700 Series Owner's Manual page 64

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

2. 3. 9. 2 TEMPO (abbreviated format: TEM.)
Format
Function
Example
Note
2. 3. 8. 8 SPC
Format
Function
Example
TAB (x)
x . . . A numeric expression
The TAB function is used together with the PRINT statement to move the cursor
to the character position which is x + 1 positions from the left side of the screen.
(This is referred to as space tabulation.)
P R I N T
T A B ( 5 )
; " X Y Z " ; T A B ( 1 0 )
; " A B C "
0 1 2 3 4 5 6 7 8 9 0 1
2 <]=[ Not actually displayed.
— — — — — X Y Z — — A B C
1
j
Tabulation can only be used to move the cursor to the right; therefore, nothing
happens if this function is used together with the PRINT statement when the cursor
is already to the right of the character position specified in (x).
(Example:)
P R I N T
T A B ( 5 )
;
1 1
X Y Z
1 1
; T A B ( 5 )
;
1 1
A B C
0 1 2 3 4 5 6 7 8 9 0
— — — — — X Y Z A B C
SPC (n)
n . . . A numeric expression
Use together with the PRINT statement, this function outputs a string of n spaces
and thus moves the cursor n character positions to the right of its current position.
(Example 1)
P R I N T
S P C ( 5 )
; " A B C
1 1
O 1 2 3 4 5 6 7
- - - - - A B C
(Example 2)
The following example illustrates the difference between the TAB and SPC func-
tions.
1 0
9
T A B ( 2 )
; " A B C " ; T A B ( 6 )
; " D E F "
2 0
9
S P C ( 2 )
; " A B C " ; S P C ( 6 )
; " D E F "
0 1
2 3 4 5 6 7 8 9 0 1
2 3
- - A B C - D E F - - - - -
- - A B C - - - - - - D E F
62

Advertisement

Table of Contents
loading

Table of Contents