[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Syntax help for print command
- Subject: Re: Syntax help for print command
- From: "C. Willis III" <ceprn@HOTMAIL.COM>
- Date: Tue, 20 Oct 1998 11:35:39 CDT
Joe,
May the Force be With You on acheiving your deadline. The basic print
command has the syntax :
print variable-or-constant (position) format-command
Since I am *not* going to type in the entire manual on the print command
(pp 205 - 224 in the V4 manual) I will concentrate on what you are
asking, the values inside the parenthesis. Basically, it looks like
this -- (row position, column position, length). Any or all of these
three variables can be null, constants or variables. OK, maybe (,,5)
won't work; I haven't tried that. Notice in the examples if you use
nulls in the first or second position and have a second or third
position defined, you need to separate them with commas. Third position
is optional and unused in most cases.. (1,2,) is a wasted character when
(1,2) will suffice.
print 'Hello' () prints in the next position after
the current position
print 'Hello' (1) prints on the first row, next position
print 'Hello' (,1,) prints current row, poition 1
print 'Hello' (+1, +5) advances the output 1 row and
5 column positions
print &test (#testa, #testb) prints the column variable
in the position defined by the
variables testa and testb
print &test (1,1,1) [useless] prints a single character
in the first row, first column
prints a * if the value is greater than
1.
There are many other options which give you a lot of control over your
output.
Try this : contact the sqr salesperson for your area, tell them your
predicament, and that you are a consultant; you might get lucky and get
a complimentary set of manuals. Might not.
I'm sure I've forgotten something, but this should help.
Hope this helps.
clark
----Original Message Follows----
I've successfully gotten through most of the details by looking at
examples and by understanding report writing in general, but one thing
has me stumped:
What the blazes are the 3 values in parentheses in the print statement??
My best guess was (lines_down, spaces_over, num_of_chars), but the way
these get used doesn't seem quite consistent with that.
Thanks in advance for any and all clues!
========================================================================
Joe Hartley - jh@brainiac.com - brainiac services, inc
PO Box 5069 : Greene, RI : 02827 - vox 401.539.9050 : fax 401.539.2070
Without deviation from the norm, "progress" is not possible. - FZappa
<< End forwarded message
========================================================================
Joe Hartley - jh@brainiac.com - brainiac services, inc
PO Box 5069 : Greene, RI : 02827 - vox 401.539.9050 : fax 401.539.2070
Without deviation from the norm, "progress" is not possible. - FZappa
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com