Apache OpenOffice (AOO) Bugzilla – Issue 97001
bug in replace() function
Last modified: 2013-02-24 21:01:04 UTC
Replace function work incorrectly when replaced fragment comes in source string more then once. sub main msgbox replace("s p a c e s "," ","") ' "sp ce " msgbox replace("12223","2","xx") ' "1xxxx23" end sum
Replace function work incorrectly AOO 3.4 Spanish version in Windows Vista Example Sub Main dim s as string, c as string s = "SbxOBJECT addMetadataFile ( SbxSTRING, SbxARRAY )" c = replace( s, "Sbx", "" ) msgbox c End Sub result: "OBJECT addMetadataFile ( SbxSTRING, SbxARRAY )" Regards
This bug is duplicated. Resolving. *** This issue has been marked as a duplicate of issue 97002 ***