QUIZ active control breaks

Chris Sharman Chris.Sharman@ccagroup.co.uk
Tue, 7 Dec 1999 09:05:48 +0000


>     My dilemma is that I get my "HEADING AT sub-control-break" logic 
>     invoked on the first page (after the PAGE HEADING) when I don't want 
>     it done until the 2nd or last control break becomes active.
>      
>     Has anyone an idea on how to "fool" the "HEADING AT" so that no 
>     printing (and associated line spacing) happens then?
      
You can define your unwanted heading item to be blank.
You can use "SET NOBLANK" to suppress blank lines (but not skips).
You can use a blank line instead of a skip to make it suppressible, and
use a "non-blank space" to prevent suppression where appropriate.

Eg:

def suppressible-heading char*40 = real-heading &
	if (real-heading<>"First heading")
def nbsp int*3 unsigned size 1 = 160 ; works on openvms
; other platforms (a) don't support byte integers &
;		  (b) store the bytes in the wrong order (dons asbestos suit)
; so you'll need nbsp to be a word & you'll need char( )[2:1]
def suppressible-skip char*1 = characters(nbsp) &
	if (real-heading<>"First heading")

set noblank
head at control-break skip 2 suppressible-heading skip &
	suppressible-skip skip suppressible-skip skip suppressible-skip

Note the initial skip 2 doesn't matter: there's already a skip 2 at the end
of the page headings (normally), and adjacent skips are merged, rather than
added.

Chris
_______________________________________________________________________
Chris.Sharman@CCAgroup.co.uk		http://www.ccastat.demon.co.uk/
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.