Sharp PC-1403 Operation Manual page 180

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

174
(See APPENDIX C
for further guide to the use
of
USING.)
10
A=125:X$="ABCDEF"
20
PRINT
USING
"##.##"";A
1.2SE021
30 PRINT USING
"&&&&&&&&";X$
._I
-'-A_B_C_D_E_F
__,
40 PRINT USING
"####&&&";A;X$1
L_
_1_2_s_A_B_c
__,
Examples
*
1
Mi
The
USING
verb
can
be used by
itself or
as
a
clause
wi
t
hin an
LPRlNT, PAUSE, or
PRINT
statement.
The USING
verb establishes
a
specified
format for
output
which is
used for
all output which follows
until
changed
by another USING
verb.
The editing
specification of the
USING
verb consists of a
quoted string composed of
some combination of the
following editing
characters:
#
Right
justified numeric field character
Decimal point
"
Used to
indicate that numbers should
be displayed in scientific notation
& Left justified alphanumeric field
For
example, "####"
is an
editing
speclllcatlon
for
a
right
justified numeric field with
room for 3 digits and the
sign. In numeric
fields,
a
location must be included for the
sign, even if
it will always
be
positive.
Editing
specifications may include
more than
one
field.
For
example"####&&&&"
could be used
to print a numeric and a
character
field
next to
each
other.
If the editing specification
is
missing,
as
in
format 1,
special formatting
is
turned off and
the
built-in
display rules
pertain.
1µm+Hi
The
USING
verb
is
used
to control the
format
of
displayed or printed
output.
1
USING
2
USING
"editing
specification"
Abbreviations: U., US., USI., USIN.
See
also: LPRINT, PAUSE,
PRINT
Verbs
USING

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents