VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A 'strReplace' function.

Danny Young  (3 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

When called with a string, will search through the string and replace a character of your choice with another character of your choice. For example, if you sent the string:
"Hello to the world"
And sent "o" as the character to be replaced,
and sent "a" as the replacement
It will return you with:
"Hella ta the warld".

Inputs
OldString, OldLetter and NewLetter

Assumes
AND THIS IS FOR VB5.....

Returns
The modified string

Side Effects
None.

Rate A 'strReplace' function. (16(16 Vote))
A 'strReplace' function..bas

A 'strReplace' function. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters