Saran
New Member
Hi Team,
I have a techi question - could be dumb (Sorry!). I am trying to read a string that will come from a DB or a 3rd Party app which has "\" (Backslash) in it. I am trying to replace the '\' with some other character, say '-' (Hypen); am not getting the desired output. [None of the Progress 4GL function reads backslash in Unix environment]
disp replace("saravana\kumar","~\","-") format "x(45)".
Output -
Windows: saravana-kumar
Unix: saravanakumar
I need Unix to say as the same way as Windows do.
Note - I will get the input as "saravana\kumar" which can not be asked to be sent as "saravana\\kumar".
I have a techi question - could be dumb (Sorry!). I am trying to read a string that will come from a DB or a 3rd Party app which has "\" (Backslash) in it. I am trying to replace the '\' with some other character, say '-' (Hypen); am not getting the desired output. [None of the Progress 4GL function reads backslash in Unix environment]
disp replace("saravana\kumar","~\","-") format "x(45)".
Output -
Windows: saravana-kumar
Unix: saravanakumar
I need Unix to say as the same way as Windows do.
Note - I will get the input as "saravana\kumar" which can not be asked to be sent as "saravana\\kumar".