Hi,
Does anyone have a Replace Function that is much fast than VB's Replace Function ?
Printable View
Hi,
Does anyone have a Replace Function that is much fast than VB's Replace Function ?
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.
What type of string or text you wish to replace?
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
P.S. I'm using ASPCode: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?
[Edited by omarswan on 06-25-2000 at 01:36 AM]