home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
text
/
textra
/
scripts
/
delwholeline.textra
< prev
next >
Wrap
Text File
|
1995-02-27
|
1KB
|
36 lines
/******************************************************************
* TEXTRA AREXX script -- Mike Haas, 1991, All Rights Reserved. *
* Freely distributable ONLY as a component of the TEXTRA package. *
* This banner may not be removed or altered (improvements to the *
* actual program welcome). Please document and send to me. *
* !!! PLACE THIS FILE IN YOUR REXX: DIRECTORY !!! *
******************************************************************/
/* Usage: DelWholeLine
*
* This script accepts no parameters, and simply deletes the cursor/selected
* line. If the select is greater than one line, it presents a notification
* requester.
*
*/
options results
get cursor position
if (result ~= SELECT) then do
parse var result xstart' 'ystart
end
else do
get select position
parse var result xstart' 'ystart' 'xend' 'yend
if (ystart ~= yend) then
if ((xend ~= 0) | ((yend-ystart) > 1)) then do
notify '"Only 1 selected line allowed for DelWholeLine script."'
exit
end
end
selectline ystart
backspace