Appending Text From EditBox to String?
I need to find the easiest way to add an extra "\" to the text from an editbox, and put it into a string. I have an editbox that the user will input a file location into. I then need to take that text and put it into a string.
Example: If the file name is: C:\Program Files\Microsoft\Microsoft Games, I need to be able to add an extra "\" everywhere that one already is. So the string would be C:\\Program Files\\Microsoft\\Microsoft Games.
Can anyone help me with this please?
Thanks in advance for your help, guys!
stephen1980
Re: Appending Text From EditBox to String?
You could use an object like substring replace or string parser to replace \ with \\.
Re: Appending Text From EditBox to String?
Thanks, Jaffob. I will try that out.
stephen1980