View Issue Details

IDProjectCategoryView StatusLast Update
0003462JEDI VCL00 JVCL Componentspublic2006-01-23 17:33
ReportervrtaregAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.10 
Target VersionFixed in Version3.20 
Summary0003462: ReplaceAllStrings function Error
DescriptionFunction ReplaceAllStrings in run\JvJCLUtils.pas and in qrun\JvQJCLUtils.pas return the same input string value due function code error.

Old incorrect code
------------------------------------------------------------
  for I := 0 to Words.Count - 1 do
    Result := ReplaceString(S, Words[I], Frases[I]);
  Result := S;
------------------------------------------------------------

New corrected code
------------------------------------------------------------
  Result:= S;
  for I:= 0 to Words.Count - 1 do
    Result:= ReplaceString(Result, Words[I], Frases[I]);
------------------------------------------------------------

TagsNo tags attached.

Activities

AHUser

2006-01-23 17:33

developer   ~0008432

Fixed in CVS.

I have not changed the code in qrun\JvQJCLUtils.pas because these files are autogenerated.

Issue History

Date Modified Username Field Change
2006-01-23 13:01 vrtareg New Issue
2006-01-23 17:33 AHUser Status new => resolved
2006-01-23 17:33 AHUser Resolution open => fixed
2006-01-23 17:33 AHUser Assigned To => AHUser
2006-01-23 17:33 AHUser Note Added: 0008432