Click here to Skip to main content
16,005,169 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<how to replace space 20 blank between words to $ in vb.net2010 please answer and
how to space between words 20 blank in same language
Posted

1 solution

Use the Replace function.

VB
Dim ReplaceIn as string = "Hello World"
Dim ToReplace as string = Space(1)
Dim ReplaceBy as string = "$"
Dim ReplacedString as string

ReplacedString= Replace(ReplaceIn, ToReplace,ReplaceBy)


ReplacedString should be equal to Hello$World

You could also look at Regex[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900