954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Adding in escape characters into a string

Hey everyone,

I'm trying to store file path's within a database. The problem I'm having is that the file path contains a backslash and when put into the database, it causes a problem. So I need to add an escape character into the string. I was wondering if anyone could help me out with this. I attempted to write a function that would iterate through the characters in the string and input a slash when it finds a slash, but the problem is that the string is a set size and I'm unsure how to add a new character into a preexisting string. Anyone have any suggestions?

Thanks,
Barefoot

Barefootsanders
Junior Poster
166 posts since Oct 2006
Reputation Points: 10
Solved Threads: 3
 

Just for clarity can you post a example of the problem string?

blacklocist
Junior Poster in Training
87 posts since Apr 2006
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You