replacing a character in a string

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

I want to find everywhere there is a whitespace in a given
string and replace that space with a pipe character. for
instance:

I want to turn the phrase 'Craig needs help'

into

'Craig|needs|help'

how do i do a character replace within a string? is there
a function to do that? that info along with some details
on how to use the function would be helpful. thank you

Craig
 
The Replace() function will work.

eg) x = Replace("I Am A Pretty Pony"," ","|")

the x variable will be equal to the following string...

"I|Am|A|Pretty|Pony"
 
Back
Top