Hi Larry,
On 11 Aug 96, 20:41, Larry Cohen wrote to Bill White
BW>> I thought of writing a general macro for replacing
BW>> code-pairs, then found one came with WordPerfect dos
BW>> 6.1: MOD_ATRB.WPM
LC> Will it work with WP dos 6.0b and if so is it short enough you
LC> wouldn't mind putting it on the conference?
Hm ... I thought I posted a WP6.0 dos version some weeks ago ... yes, here it
is again:
DISPLAY(Off!)
// search for the Underline Off code -- this sets the 'previous position'.
SearchString("[Und Off]"+"") // [Und On] is a code ... needs to be recorded
SearchNext()
// search backwards for the Underline On code and delete both codes
SearchString("[Und On]"+"") // [Und Off] is a code ... needs to be
ecorded
SearchPrevious()
DeleteCharPrevious
// put the original underlined code in italics ...
BlockOn(CharMode!)
PosGoPrevious
AttributeAppearanceToggle(Italics!)
BlockOff
// that's it.
Caveat: if Block mode is on when you start this macro you'll lose text. This
can be fixed by:
IF( ?BlockMode ) // I'm not sure about that variable's name ...
BlockOff
ENDIF
before the searching.
LC> Also, I was wondering if anyone knows if macros written for WP60
LC> (win) will work with WP6.1 (win). Reason I ask is I saw a
LC> remandered book for WP 6.0 (win) which came with a lot of macros
LC> on disk. If they'd work with v. 6.1 (win), I might decide to
LC> pick it up for $7.00.
WPwin60 macros usually work in WPwin61. The minor incompatibilities usually
are obvious -- they'll cause problems ;-)
Actually there are similar differences between interim releases of the same
WP-product too ... :-(
Greetings from
_____
/_|__| Auke Reitsma, Delft, The Netherlands.
/ | \ --------------------------------------
email: Auke.Reitsma@net.HCC.nl
--- GEcho 1.00
---------------
* Origin: Home by the C (2:281/400.20)
|