Mar 1, 2004 #1 5679 Programmer Joined Feb 14, 2003 Messages 32 Location 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 Joined Jun 10, 2003 Messages 541 Location GB Code: newPath = newPath.Replace(@"\\", @"\"); Upvote 0 Downvote
Mar 2, 2004 1 #3 obislavu Programmer Joined May 31, 2003 Messages 974 Location 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 Joined Jun 9, 1999 Messages 9,878 Location 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