Sharp OZ-707 Operation Manual - Page 115

Using

Page 115 highlights

p TRON o FORMAT: TRON Abbreviation: TR. See Also: TROFF PURPOSE: Starts the trace mode. REMARKS: The trace mode provides assistance in debugging programs. When the trace mode is on, the line number of each statement is displayed after 0 0 each statement is executed. To stop trace execution, press the key or execute the STOP command. After trace execution is stopped, the Card waits for the [YJ key to be pressed before moving on to the next statement. The trace mode continues until TROFF is executed. or the ISHIFT I [CeCE I keys are pressed. USING p o FORMAT: 1. USING format string 2. USING Abbreviation: U. See Also: LPRINT. PAUSE, PRINT PURPOSE: Controls the format of displayed or printed output. REMARKS: USING can be used by itself or as a clause within a PRINT, LPRINT. or PAUSE statement. When the USING command is used in a PRINT. LPRINT, or PAUSE statement, it is valid only for the values or strings output by that statement. If it is used independently (on an independent line). it is valid for all the subsequent PRINT or LPRINT commands. USING establishes a specified format for output that is used for all output that follows until changed by another USING. #: Right justified numeric field character. Length of integer field: 2 to 21 (including sign) If a value is shorter than the specified numeric field. the extra portion of the field is filled with spaces. If a numeric field with a length of 22 or more digits is specified. it is regarded to be 21 digits long. Length of decimal field: 0 to 20 (0 to 19 for exponential numbers) If a value is shorter than the specified field, zeros appear in the extra portion of the field. If the former is longer than the latter, the extra digits are truncated. Decimal point (delimiter for integer and decimal parts) Used as a 3-digit separator in numeric fields. To separate every 3 digits of integer field with commas (,). place a comma in or at the end of the integer field. 218 219

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

TRON
FORMAT:
TRON
Abbreviation:
TR.
See
Also:
TROFF
PURPOSE:
Starts the trace mode.
p
o
REMARKS:
The trace mode provides assistance
in
debugging programs. When the
trace mode is on, the line number of each statement
is
displayed after
each statement is executed. To stop trace execution, press the
00
key or execute the STOP command. After trace execution
is
stopped,
the Card waits for the
[YJ
key to
be
pressed before moving
on
to the
next statement. The trace mode continues until TROFF
is
executed.
or
the
I
SHIFT
I
[CeCE
I
keys are pressed.
218
t
USING
FORMAT:
1.
USING format string
2.
USING
Abbreviation:
U.
See
Also:
LPRINT. PAUSE, PRINT
PURPOSE:
Controls the format of displayed or printed output.
REMARKS:
p
o
USING can
be
used by itself or as a clause within a PRINT, LPRINT.
or PAUSE statement. When the USING command
is
used in a PRINT.
LPRINT, or PAUSE statement, it is valid only for the values or strings
output by that statement. If it
is
used independently (on
an
independent
line).
it
is
valid for all the subsequent PRINT
or
LPRINT commands.
USING establishes a specified format for output that
is
used for all
output that follows until changed by another USING.
#:
Right justified numeric field character.
Length of integer field: 2 to
21
(including sign)
If a value is shorter than the specified numeric field. the extra
portion of the field
is
filled with spaces.
If a numeric field with a length of 22 or more digits
is
specified. it
is
regarded to be
21
digits long.
Length of decimal field: 0
to
20
(0
to
19
for exponential numbers)
If a value is shorter than the specified field, zeros appear
in
the
extra portion of the field. If the former
is
longer than the latter, the
extra digits are truncated.
Decimal point (delimiter for integer and decimal parts)
Used
as
a 3-digit separator in numeric fields.
To separate every 3 digits of integer field with commas (,). place a
comma
in
or at the end of the integer field.
219