Issue 97001 - bug in replace() function
Summary: bug in replace() function
Status: CLOSED DUPLICATE of issue 97002
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC (x86_64) Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: vladislav_yurov
QA Contact: Unknown
Depends on:
Reported: 2008-12-08 08:14 UTC by vladislav_yurov
Modified: 2013-02-24 21:01 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description vladislav_yurov 2008-12-08 08:14:44 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
Comment 1 salva 2012-07-06 19:28:00 UTC
Replace function work incorrectly  AOO 3.4 Spanish version in Windows Vista


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 )"

Comment 2 damjan 2012-10-31 17:03:32 UTC
This bug is duplicated. Resolving.

*** This issue has been marked as a duplicate of issue 97002 ***