I need to convert a path and filename on windows platform such as "c:\junk\test.txt" to "c:\\junk\\test.txt". (This is because I am passing it to gnuplot which requires it that way) Anyway... I cannot find a way to search and replace. Here is what I tried and Progress doesn't like it...
DEF VAR s1 AS CHAR INIT 'c:\junk\test.txt'.
DEF VAR c AS INTEGER.
DO c= 1 TO LENGTH(s1):
IF SUBSTRING(s1,c,1) = '\' THEN
SUBSTRING(s1,c,1,"CHARACTER")="\\".
END.
Any tips?
DEF VAR s1 AS CHAR INIT 'c:\junk\test.txt'.
DEF VAR c AS INTEGER.
DO c= 1 TO LENGTH(s1):
IF SUBSTRING(s1,c,1) = '\' THEN
SUBSTRING(s1,c,1,"CHARACTER")="\\".
END.
Any tips?