forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Formatting text in a dialog box
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 6:58 pm    Post subject: Reply with quote

Thanks. Smile

The first routine I posted should have removed
@chr(13) and @chr(10) from %%final though... Confused

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 Smile

_________________
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
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 7:06 pm    Post subject: Reply with quote

OOPS - I think I found the problem. I didn't allow for
%x being off when we deleted the char... Embarassed

This was the problem with both routines. I have edited
both to fix it. Wink

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 Smile

_________________
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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Sun Dec 08, 2002 7:18 pm    Post subject: Reply with quote

You are the man!!! Cool
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 7:24 pm    Post subject: Reply with quote

Lol, a mighty slow one apparently... glad we got it goin'. Wink
_________________
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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Sun Dec 08, 2002 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Sun Dec 08, 2002 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Dec 08, 2002 7:42 pm    Post subject: Reply with quote

Run this after the first one. Wink
Code:

REPEAT
  if @greater(@pos("&nbsp", %s), 0)
     %p = @pos("&nbsp", %s)
     %s = @strdel(%s, %p, @sum(%p, 4))
     %s = @strins(%s, %p, " ")
  end
UNTIL @equal(@pos("&nbsp", %s), 0)

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
flypaper
Contributor
Contributor


Joined: 19 Oct 2001
Posts: 104

PostPosted: Sun Dec 08, 2002 7:47 pm    Post subject: Reply with quote

You are a gawd.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group