how stringreplace \ in \\ ?

 

hi guys , i try to replace   in a path   the   sign \   in to  \\   but   return  me  double quoated ar neede   whats  wrong ??


string RelativePath= (StringReplace (TerminalInfoString(TERMINAL_DATA_PATH),"\",""\\"");

i tryed also  with ""\""  but  give me  error for escape \

i know in string  \  is  used for escape , but how  is possible to resolve it  ??


tankz at all

 
string str1 = CharToStr(0x5C);

string str2 = str1 + CharToStr(0x5C);

int ret_value = StringReplace(TerminalInfoString(TERMINAL_DATA_PATH), str1, str2);
You are wrong how to use "StringReplace".
 
thankz now i understund  how work :)
 

Or

 string RelativePath= StringReplace( TerminalInfoString(TERMINAL_DATA_PATH), "\\", "\\\\");