View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001554 | JEDI VCL | 00 JVCL Components | public | 2004-04-01 00:44 | 2004-04-01 08:55 |
Reporter | Dierk | Assigned To | user72 | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0001554: TJvDriveCombo - index out of bounds | ||||
Description | Since revision 1.24 (Added Drives and DriveCount properties) I get an "index out of bounds" (free translated). This only seems to be when changing JvDriveCombo.drivetypes:=[dtCDROM] in runtime. Therefore I´ve looked to BUGReport 0001318 and delete the "change"-call after "Buildlist" in procedure TJvDriveCombo.SetDriveTypes. Ok, now I get no more error, but problem is now again like in BUGReport 0001318. Regards Dierk | ||||
Tags | No tags attached. | ||||
|
Add the Change call again and replace Change with: procedure TJvDriveCombo.Change; function FirstChar(const S: string): char; begin if Length(S) > 0 then Result := S[1] else Result := #0; end; begin if ItemIndex <> -1 then FItemIndex := ItemIndex else FItemIndex := 0; if (FItemIndex >= 0) and (FItemIndex < FDrives.Count) then Drive := FirstChar(FDrives[FItemIndex]); if (ItemIndex > -1) and (ItemIndex < Items.Count) then FDisplayName := Items[ItemIndex] else FDisplayName := ''; inherited Change; end; Works? edited on: 04-01-04 02:46 |
|
Yop! This works! But you´ve forget the "#" in Result:= #0 procedure TJvDriveCombo.Change; function FirstChar(const S: string): char; begin if Length(S) > 0 then Result := S[1] else Result := 0; <<-- should be #0 Thanks |
|
Aah, bug-tracker deletes the "#" sign |
|
Yes, it thinks it's a link to a bug report... |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-04-01 00:44 | Dierk | New Issue | |
2004-04-01 02:46 |
|
Note Added: 0003555 | |
2004-04-01 02:46 |
|
Note Edited: 0003555 | |
2004-04-01 02:46 |
|
Status | new => assigned |
2004-04-01 02:46 |
|
Assigned To | => user72 |
2004-04-01 02:52 | Dierk | Note Added: 0003560 | |
2004-04-01 02:53 | Dierk | Note Added: 0003561 | |
2004-04-01 04:21 |
|
Note Added: 0003564 | |
2004-04-01 08:55 |
|
Status | assigned => resolved |
2004-04-01 08:55 |
|
Resolution | open => fixed |