replacing a character in a string

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
 
E

Elwin

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top