README.md

December 4, 2022 · View on GitHub

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 On2005-05-20 23:20:18
ByKristian S. Stangeland
LevelAdvanced
User Rating5.0 (65 globes from 13 users)
CompatibilityVB 5.0, VB 6.0
CategoryString Manipulation
WorldVisual Basic
Archive FileA_fast_rep1890335212005.zip