home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / ibm / pc / misc / 14916 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.4 KB  |  50 lines

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