![]() |
[erledigt] Unbekanntes Problem : E2008 Inkompatible Typen
Ich habe folgende Procedure
Delphi-Quellcode:
nun sagt er zu mir:
procedure TFIni.MIDelSectionClick(Sender: TObject);
var i : Integer; begin if LBSections.ItemIndex > 0 then if MessageDlg('Wollen sie wirklich die Section ' + LBSections.Items[LBSections.ItemIndex] + ' löschen?', mtConfirmation, [mbYes] + [mbNo], 0) = 6 then begin for i := LBSections.ItemIndex to High(LBSections.Items) - 1 do begin // Zeile 347 Section[i] := Section[i + 1]; LBSections.Items[i] := LBSections.Items[i + 1]; end; LBSections.Items.delete(High(LBSections.Items)); // Zeile 351 end; end; Zitat:
|
Re: Unbekanntes Problem : E2008 Inkompatible Typen
Nimm statt High(LBSections.Items) lieber LBSections.Items.Count. :)
|
Re: Unbekanntes Problem : E2008 Inkompatible Typen
Ah ja ^^ Hät ich auch so drauf kommen können ;) Danke!
- erledigt - |
Re: Unbekanntes Problem : E2008 Inkompatible Typen
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:42 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz