Hi designers,
i use a ls code line like
mystring = replace(mystring, Variant1, Variant2)
in which mystring is a string var, and Variant1 and 2 are StringArrays (got them from notesdocument.getitemvalue)
this code runs well in 6, and in 8.0.2, but in 8.0.1 it throws me a “type mismatch” error.
I understand that it is because of the mystring sting variable, if I change it into an array and write it like
dim mystringArray(0) as string
mystringArray(0)= mystring
mystringArray = replace(mystringArray, Variant1, Variant2)
mystring = mystringArray(0)
I get it without error message.
But this is quite “long-winded”, and I know we have quite a lot places where we just used
replace(string1, string2, string3).
Do anyone knows if it was just a “bug” in 8.0.1 not to accept strings (8.0.2 is ok again) - or must we rewrite all our replace code?
Thanks, Uwe