Mar 1, 2004 #1 5679 Programmer Feb 14, 2003 32 AU newPath = newPath.Replace("\\","\"); ^ new path is a string. with the above line of code, i get an error. how to solve this?
newPath = newPath.Replace("\\","\"); ^ new path is a string. with the above line of code, i get an error. how to solve this?
Mar 2, 2004 1 #2 SHelton Programmer Jun 10, 2003 541 GB Code: newPath = newPath.Replace(@"\\", @"\"); Upvote 0 Downvote
Mar 2, 2004 1 #3 obislavu Programmer May 31, 2003 974 CA Or Code: newPath = newPath.Replace(@"\\", ""+Path.DirectorySeparatorChar); to be platform independent. -obislavu- Upvote 0 Downvote
Or Code: newPath = newPath.Replace(@"\\", ""+Path.DirectorySeparatorChar); to be platform independent. -obislavu-
Mar 2, 2004 #4 chiph Programmer Jun 9, 1999 9,878 US I vote for Obislavu's method using the constant. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first Upvote 0 Downvote
I vote for Obislavu's method using the constant. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first