Link to home
Create AccountLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Replace method

I believe the VB6 Replace function allowed one to replace a series of characters within a string.  The VB.NET string.Replace method only operates on one character.   How can I easily replace a series of characters?   Specifically, I need to replace vbCrLf with spaces.    
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

YourResultString = YourOriginalString.Replace(environement.newline, " ")
Avatar of nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of HLRosenberger


Thanks.   I thought the help said only one character - one Unicode character, which is two bytes