home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.misc
- Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!silver.ucs.indiana.edu!mellman
- From: mellman@silver.ucs.indiana.edu (Bill Mellman)
- Subject: Re: WP51 Block protect in macros
- Message-ID: <By6G6I.DI7@usenet.ucs.indiana.edu>
- Sender: news@usenet.ucs.indiana.edu (USENET News System)
- Nntp-Posting-Host: silver.ucs.indiana.edu
- Organization: Indiana University
- References: <JC.92Nov23123209@mr-potter-t-crosser-i-dotter.fulcrum.co.uk>
- Distribution: comp
- Date: Mon, 23 Nov 1992 16:23:06 GMT
- Lines: 36
-
- In article <JC.92Nov23123209@mr-potter-t-crosser-i-dotter.fulcrum.co.uk> jc@fulcrum.co.uk (John Callingham) writes:
- >Does anyone know how to cause a WP51 macro to insert the "Block
- >Protect On" and "Block Protect Off" codes into a document from a
- >macro. I want to do this to stop records from a merge breaking over
- >two pages.
-
- In general to protect a block you first highlight the text you wish to
- protect, and then select SHIFT-F8 (ordinarily this gives you the
- Format menu, but if Block is on [should be flashing "Block on" in the
- lower left corner of your screen] then you will simply be asked if you
- wish to protect the block).
-
- When defining a macro this same procedure is followed. i.e. your macro
- must highlight some text (with Block), and then the macro must perform
- a SHIFT-F8.
-
- If you're in the macro editor and you wish to insert a Block Protect
- code you still press SHIFT-F8 (this will insert a {format} macro
- command on the screen). NOTE: this {format} macro command will be
- interpreted (when the macro is executed) as either a Block Protect or
- a Format depending on whether or not Block is turned on at that point
- in the macro.
-
- Finally to check if the block feature is turned on from within a macro
- use the {STATE} macro command (see your WP manual for details).
-
- Incidentally Block Protect will NOT allow you to protect something
- which is actually larger than a page in the first place. You might
- want to check you Top/Bottom margins or paper size if this is the case.
-
- I don't know if this is clear or not, but I hope it helps.
- --
- ..............................................................................
- Bill Mellman e-mail: MELLMAN Bitnet Node: IUBACS
- Computer Facilities Specialist Internet: mellman@ucs.indiana.edu
- ...........Indiana University - Halls of Residence - (812) 855-5344...........
-