EasyManua.ls Logo

IBM 5100 - Page 150

IBM 5100
228 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
146
ARRANGING THE OUTPUT FROM A USER-DEFINED FUNCTION
The
output
from
user-defined functions can be arranged by using
the
format
func-
tion
(see the,,"
function
in
Chapter 4)
or
bare
output.
Bare
output
is
discussed
next.
Bare
Output
After
normal
output,
the
cursor
is
moved
to
the
next
line so
that
the
next
entry
(either
input
or
output)
will begin
at
a
standard
position. However, bare
output,
denoted
by
the
form
[!]~X
(X
can be
any
expression), does
not
move
the
cursor
to
the
next
line. Therefore, more
than
one
variable
or
expression can be displayed
on
the
same line. For example:
'V
X
TIMES
Y
[:1,
J
I~I~"X
[2]
I~I~"
.
TIMES
,
[:3]
r:l$,
..
y
[I+J
1~lf'
,
I
<:,
.
,
,,)
I:
!:j
J
XXY'V
2 TIMES
1+
2
TIf~ES
1+
IS
B
Since
the
cursor does ilot
return
to
the
next
line
after
bare
output,
when
quad
quote
([!])
input
is
entered
following
the
bare
output,
the
input
starts
after
the
last character
of
the
bare
output.
Then when
the
input
is
processed, it
is
pre-
fixed by any bare
output
on
the
input
line. For example:
[1]
[2J
[:'5::1
[1+]
THI~:)
'iJ
OUTPUT~INPUT
L~I~
..
'
THIS
IS
Bi~RE
OUTPUT! ! ! '
ATHE
NEXT STATEMENT REQUEST
~
INPUT
IN'.-r.i
ANOW
DISPLAY
THE
INPUTV
ClUTPUTIJ,INPUT
ISBA
RE
OUT
PUT! !
!..r-
The
cursor appears here. Now
enter
THIS
IS
[!]
INPUT.
TdI8
IS
B(.~I~E
OUTPUT!!!
THIS
IS
I~I
INPUT,
After
EXECUTE
is
pressed,
the
output
line looks like
this.

Table of Contents

Other manuals for IBM 5100

Related product manuals