View Issue Details

IDProjectCategoryView StatusLast Update
0004822JEDI VCL00 JVCL Componentspublic2009-06-15 18:25
ReporterTom MacbethAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.36 
Target VersionFixed in Version3.37 
Summary0004822: JvStrings.HasStringValue is broken
DescriptionJvStrings.HasStringValue function never returns True. It should look like this:

function HasStrValue(const AText, AName: string; var AValue: string): Boolean;
var
  P, P2, L: Integer;
  S: string;
begin
  Result := False;
  L := Length(AName) + 2;
  P := PosText(AName + '="', AText);
  if P = 0 then
    Exit;
  P2 := PosStr('"', AText, P + L);
  if P2 = 0 then
    Exit;
  S := Copy(AText, P + L, P2 - (P + L));
  AValue := SysUtils.StringReplace(S, '~~', Cr, [rfReplaceAll]);
  Result := True; // <- This must be True here!
Additional InformationThis was originally reported as issue 0002975, but it was not fixed.

The JVCL library only uses this function within the JvStrings unit. These three functions are affected:

o GetFloatValue
o GetHTMLColorValue
o GetStrValue
TagsNo tags attached.

Activities

AHUser

2009-06-15 18:25

developer   ~0015675

Fixed in SVN.

Issue History

Date Modified Username Field Change
2009-06-15 16:49 Tom Macbeth New Issue
2009-06-15 18:25 AHUser Note Added: 0015675
2009-06-15 18:25 AHUser Status new => resolved
2009-06-15 18:25 AHUser Fixed in Version => Daily / SVN
2009-06-15 18:25 AHUser Resolution open => fixed
2009-06-15 18:25 AHUser Assigned To => AHUser