View Issue Details

IDProjectCategoryView StatusLast Update
0002231JEDI VCL00 JVCL Componentspublic2004-10-22 13:42
ReporteranonymousAssigned Touser72 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 BETA 
Target VersionFixed in Version3.00 RC 1 
Summary0002231: TJvValidateEdit doesn't accept Value(s) greater than 255
DescriptionHi,

TJvValidateEdit does not accept Values greater than 255, when DisplayFormat is set to dfHex and the Value is set through code.

It replaces the Value with a zero instead.

To reproduce the error, put a TJvValidateEdit and a TButton on the Form and then use this code:


procedure TForm1.Button1Click(Sender: TObject);
begin
  JvValidateEdit1.DisplayFormat := dfHex;
  JvValidateEdit1.Value := 2048; // Does not work!
  //JvValidateEdit1.Value := 255; // Works!
end;
TagsNo tags attached.

Relationships

has duplicate 0002328 resolved TJvValidateEdit doesn't accept Value(s) greater than 255 

Activities

anonymous

2004-10-16 13:29

viewer   ~0005406

In JvValidateEdit.pas line 891:

function TJvCustomValidateEdit.IntToBase(NewValue, Base: Byte): string;

The parameter NewValue must be an Integer, or better an Int64.

anonymous

2004-10-16 13:39

viewer   ~0005407

procedure TJvCustomValidateEdit.SetAsInteger(NewValue: Integer);

should be also use an Int64

anonymous

2004-10-16 13:39

viewer   ~0005408

function GetAsInteger: Integer;

Should be also use an Int64

anonymous

2004-10-16 13:40

viewer   ~0005410

function BaseToInt(const BaseValue: string; Base: Byte): Integer;

also an Int64

Basically every Integer an Int64 :)

user72

2004-10-22 13:42

  ~0005455

Fixed in CVS. Note that I chose Integer, not Int64, since D5 doesn't support implicit conversion between Int64 and Variant

Issue History

Date Modified Username Field Change
2004-10-16 13:20 anonymous New Issue
2004-10-16 13:29 anonymous Note Added: 0005406
2004-10-16 13:39 anonymous Note Added: 0005407
2004-10-16 13:39 anonymous Note Added: 0005408
2004-10-16 13:40 anonymous Note Added: 0005410
2004-10-22 13:42 user72 Status new => resolved
2004-10-22 13:42 user72 Resolution open => fixed
2004-10-22 13:42 user72 Assigned To => user72
2004-10-22 13:42 user72 Note Added: 0005455
2004-11-23 23:32 user72 Relationship added has duplicate 0002328