View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002231 | JEDI VCL | 00 JVCL Components | public | 2004-10-16 13:20 | 2004-10-22 13:42 |
Reporter | anonymous | Assigned To | user72 | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA | ||||
Target Version | Fixed in Version | 3.00 RC 1 | |||
Summary | 0002231: TJvValidateEdit doesn't accept Value(s) greater than 255 | ||||
Description | Hi, 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; | ||||
Tags | No tags attached. | ||||
has duplicate | 0002328 | resolved | TJvValidateEdit doesn't accept Value(s) greater than 255 |
|
In JvValidateEdit.pas line 891: function TJvCustomValidateEdit.IntToBase(NewValue, Base: Byte): string; The parameter NewValue must be an Integer, or better an Int64. |
|
procedure TJvCustomValidateEdit.SetAsInteger(NewValue: Integer); should be also use an Int64 |
|
function GetAsInteger: Integer; Should be also use an Int64 |
|
function BaseToInt(const BaseValue: string; Base: Byte): Integer; also an Int64 Basically every Integer an Int64 :) |
|
Fixed in CVS. Note that I chose Integer, not Int64, since D5 doesn't support implicit conversion between Int64 and Variant |
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 |
|
Status | new => resolved |
2004-10-22 13:42 |
|
Resolution | open => fixed |
2004-10-22 13:42 |
|
Assigned To | => user72 |
2004-10-22 13:42 |
|
Note Added: 0005455 | |
2004-11-23 23:32 |
|
Relationship added | has duplicate 0002328 |