Skip to content

Planet-Source-Code/kristian-s-stangeland-a-fast-replace-function__1-60605

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A fast replace-function

Description

The Replace-function in VB6 is an extremely useful in many occasions, but unfortunately, it is as most string-functions in VB rather slow. Therefore I’ve tried to optimize this operation, and I must say the result is satisfying – it is nearly 50 times faster replacing 35.000 characters than the native Replace-function.

The code should also work in VB5, where the native function doesn’t even exist.

More Info

As Replace in VB6, only that "Start" is now defining the position within the expression where the substring search is to begin.

The string replaced.

Submitted On 2005-05-20 23:20:18
By Kristian S. Stangeland
Level Advanced
User Rating 5.0 (65 globes from 13 users)
Compatibility VB 5.0, VB 6.0
Category String Manipulation
World Visual Basic
Archive File A_fast_rep1890335212005.zip