Adding in escape characters into a string

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 164
Reputation: Barefootsanders is an unknown quantity at this point 
Solved Threads: 3
Barefootsanders Barefootsanders is offline Offline
Junior Poster

Adding in escape characters into a string

 
0
  #1
Dec 29th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 88
Reputation: blacklocist is an unknown quantity at this point 
Solved Threads: 2
blacklocist blacklocist is offline Offline
Junior Poster in Training

Re: Adding in escape characters into a string

 
0
  #2
Dec 30th, 2007
Just for clarity can you post a example of the problem string?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC