[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: NEXT-LISTING command



> Exp: CRN	INSTRUCTORS
>      -----	-----------    
>      12345	Le, Benjamin
> 		   (blank line)
> 		Le, Wife
> 		   (blank line)
[...]
> 	BEGIN-PROCEDURE print_crn
> 	  print	&crn	(+1,1)
> 	  do get_instructors
>         END-PROCEDURE
> 
> 	BEGIN-PROCEDURE get_instructors
> 	  (... Instructor query select...)
> 	  print &instructor_names	(,10)
> 	  NEXT-LISTING	(This prevents next instructor prints over last one.
> 	        	 But it gives me a blank line in between.)
> 	  from ...
> 	  where ...
> 	END-PROCEDURE
> 


You shouldn't need to change the "print &crn" line, because the extra space
is happening in the "get_instructors" procedure and not in "print_crn".

I'm fairly certain that somewhere else in "get_instructors" you have a
(+1,,) position specification.  If at any point you move "down the page",
the following NEXT-LISTING will take off from that lowest point.  (Don't
forget to check any procedures that get called within the begin-select.)

Also, you can get rid of the NEXT-LISTING and replace it with a 
  position (+1)
line.  This will move you down the page without resetting the
"top-of-listing" coordinates.  Depending on what else you are doing (i.e.
whether you like to use relative or absolute co-ordinates), this might be
better.  (You'd use NEXT-LISTING if you use absolute co-ordinates.)

Hope this helps.

						Nathan
 
----------------------------------------------------------------------------
Nathan Treadway    | Ray Ontko & Co. | info@ontko.com (auto-reply server)
nathant@ontko.com  | Richmond, IN    | ftp.ontko.com:/users/ontko (anon ftp)