home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
eeedit22.zip
/
enhanced.zip
/
SingleSpace.plg
< prev
next >
Wrap
Text File
|
2001-04-15
|
685b
|
18 lines
/* Single space selected text */
parse value vpgetindex(window,Target) with first last
SelectedText = VpGetItemValue(window,Target,First,Last)
if First=Last then response=VpMessageBox(window,programname,'Please highlight the text area on which to perform single spacing.'||'0d0a'x||' ')
CALL VpSetItemValue EEEmainwin,1019,rdledon
parse var SelectedText value '0d0a'x SelectedText
do until SelectedText=''
parse var SelectedText line '0d0a'x SelectedText
if line<>'' then value=value||'0d0a'x||line
end
SelectedText=value
CALL VpSelect window,Target,First,Last
CALL VpAddItem window, Target, 'CURRENT', SelectedText
CALL VpSetItemValue EEEmainwin,1019,rdledoff