home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
texed133.zip
/
English.zip
/
WordWrap.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1995-09-19
|
2KB
|
36 lines
/***************************************************************************/
/* */
/* WordWrap.cmd */
/* ════════════ */
/* */
/* This sample macro tongles the wordwrap in the current editor window */
/* */
/***************************************************************************/
/***************************************************************************/
/* Get the current setting for wordwrap */
WW = VRGet( "MLE_1", "WordWrap" )
/***************************************************************************/
/* Change the variable WW */
if WW = 1 then WW = 0
else WW = 1
/***************************************************************************/
/* Set the new WordWrap variable WW */
ok = VRSet( "MLE_1", "WordWrap", WW )
/***************************************************************************/
/* Send a message */
if ok = 1 then
id = VRMessage( VRWindow(), "WordWrap has been changed", "WordWrap Macro", "Information", , , )
else
id = VRMessage( VRWindow(), "WordWrap could not be changed", "WordWrap Macro", "Error", , , )