I have some code that replaces the / of a date with -.
So it would be replacing 10/10/2006 with 10-10-2006.
I have code for this in formula language, can anyone help me to accomplish the same thing with LS. I have looked at a mid statement but it doesn’t seem to work the same way.
Subject: RE: Lotus Script equiviant of @ReplaceSubstring
That’s definitely not the case when I try it in my 7.01 client. That is to say, the Replace function works as I would expect when I try it using the string you provided in the thread referenced.
This code in a button:
Sub Click()
Const NL = {
}
Dim strTestVal As String
Dim strRez As String
strTestVal$ = "%2Fsomeurl%2Fpath%2F"
strRez$ = Replace(strTestVal$, {%2F}, {/})
Msgbox "Original value: " & strTestVal$ & NL & "Resulting value: " & strRez$, , "DEBUG . . ."