Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004822 [JEDI VCL] 00 JVCL Components major always 2009-06-15 16:49 2009-06-15 18:25
Reporter Tom Macbeth View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version 3.36
Summary 0004822: JvStrings.HasStringValue is broken
Description JvStrings.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 Information This 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
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0015675)
AHUser (developer)
2009-06-15 18:25

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker