how stringreplace \ in \\ ?

To add comments, please log in or register
faustf
137
faustf  

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

Naguisa Unada
524
Naguisa Unada  
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".
faustf
137
faustf  
thankz now i understund  how work :)
Konstantin Nikitin
7853
Konstantin Nikitin  

Or

 string RelativePath= StringReplace( TerminalInfoString(TERMINAL_DATA_PATH), "\\", "\\\\");
To add comments, please log in or register