• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Speed up string replace with Classic ASP

I need to know if there is a way to replace a string in another string without using the string.replace available in classic ASP.
I have the following. I have an HTML template page for a mailer. The template has [[VARIABLE]] markers that need te be replaced for each user. With 10 000 users + the normail replace(HTMLBODY,"[[VARIABLE]]",varName) just takes forever.
1 Solution
No there isn't a better replace function.

What you could do is:
- split the template into smaller parts (e.g HTMLBODY1, HTMLBODY2...)
- run a replace only on the piece that contains the variable.
- put the pieces back together.

I you do so, the replace function will have less text to search through.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now