| View previous topic :: View next topic |
| Author |
Message |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 08, 2002 6:58 pm Post subject: |
|
|
Thanks.
The first routine I posted should have removed
@chr(13) and @chr(10) from %%final though...
Have ya tried to see what it does in a list (instead
of an edit box)? I'm pretty much stumped on this
one.
Anybody else have any ideas?
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
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 08, 2002 7:06 pm Post subject: |
|
|
OOPS - I think I found the problem. I didn't allow for
%x being off when we deleted the char...
This was the problem with both routines. I have edited
both to fix it.
Try this:
______________________________________________________________________________________________
| Code: |
%s = your string goes here
%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
 |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Sun Dec 08, 2002 7:18 pm Post subject: |
|
|
You are the man!!!  |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 08, 2002 7:24 pm Post subject: |
|
|
Lol, a mighty slow one apparently... glad we got it goin'.  _________________ 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
 |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Sun Dec 08, 2002 7:29 pm Post subject: |
|
|
| Sorry to bother you again, but in that search string above is there a way to replace ' ' with a space while it's looking for whatever that pipe was? |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 08, 2002 7:35 pm Post subject: |
|
|
Multiple times, or just one occurence? _________________ 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
 |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Sun Dec 08, 2002 7:38 pm Post subject: |
|
|
lol
Multiple times. I think I'll need to write another search string, because I'm not exactly sure what's going on in your search. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Dec 08, 2002 7:42 pm Post subject: |
|
|
Run this after the first one.
| Code: |
REPEAT
if @greater(@pos(" ", %s), 0)
%p = @pos(" ", %s)
%s = @strdel(%s, %p, @sum(%p, 4))
%s = @strins(%s, %p, " ")
end
UNTIL @equal(@pos(" ", %s), 0)
|
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
 |
|
| Back to top |
|
 |
flypaper Contributor


Joined: 19 Oct 2001 Posts: 104
|
Posted: Sun Dec 08, 2002 7:47 pm Post subject: |
|
|
| You are a gawd. |
|
| Back to top |
|
 |
|