|
-
Jun 23rd, 2000, 05:32 PM
#1
Thread Starter
Addicted Member
Hi,
Does anyone have a Replace Function that is much fast than VB's Replace Function ?
-
Jun 23rd, 2000, 06:43 PM
#2
If you have the facilities, you could make a DLL file in C++ (which uses different methods to handle strings and is a bit faster) and then incorporate it into your VB app.
-
Jun 24th, 2000, 09:18 AM
#3
PowerPoster
What type of string or text you wish to replace?
-
Jun 24th, 2000, 12:30 PM
#4
Thread Starter
Addicted Member
Hi chris,
I am creating a programming web site and I want to allow
other user to add and download and view code submissions.
For example:
I want retrieve the code from a memo field and display
it in html format on the web site. But I want the code to
have certain VB functions colorized - such as If ,
Then, Else, End IF, Do, Loop, While .. etc.
But to do that I would have to do this
Code:
myText = Replace(myText, "If", "<b>If</b>", 1, -1, 1)
myText = Replace(myText, "Then", "<b>If</b>", 1, -1, 1)
myText = Replace(myText, "Else", "<b>If</b>", 1, -1, 1)
... and so on for every keyword.
What would be a easier way?
P.S. I'm using ASP
[Edited by omarswan on 06-25-2000 at 01:36 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|