Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Feb 16, 2004 9:59 pm Post subject: |
|
|
Carriage returns are @chr(13), line feeds are @chr(10).
The following example works on a single string - you can
use %s = @text(ListName) to put the file from a list into
a string, or modify the routine to work directly on a list.
______________________________________________________________________________________________
| Code: |
rem -- ONLY remove CR and LF --
%s = @text(ListName)
%x = 1
REPEAT
if @equal(@substr(%s, %x), @chr(13)) @equal(@substr(%s, %x), @chr(10))
%s = @strdel(%s, %x,)
%x = @pred(%x)
end
%x = @succ(%x)
UNTIL @greater(%x, @len(%s))
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|