Einzelnen Beitrag anzeigen

nikosophi

Registriert seit: 8. Mai 2013
Ort: Weilerswist
45 Beiträge
 
Delphi 11 Alexandria
 
#9

AW: Samples Datenbank -> EArgumentOutOfRangeException

  Alt 22. Sep 2016, 16:57
Wenn columns.count 0 ist,
dann geht das in Vcl.DBGrids.pas schief:

Delphi-Quellcode:
function TCustomDBGrid.CanEditShow: Boolean;
begin
  Result := (not Columns[SelectedIndex].ReadOnly)
      and (LayoutLock = 0) and inherited CanEditShow;
end;
weil dann in System.Generics.Collections.pas eine Exception kommt, und das ganze Programm abbricht.

Delphi-Quellcode:
procedure TListHelper.CheckItemRange(AIndex: Integer);
begin
  CheckItemRangeInline(AIndex);
end;
  Mit Zitat antworten Zitat