Registriert seit: 26. Sep 2006
Ort: Landkreis Oldenburg (Oldb)
117 Beiträge
Delphi 10.2 Tokyo Enterprise
|
AW: DBGrid.Options auslesen
24. Apr 2018, 11:30
Hallo ekatharina,
meinst Du sowas?
Delphi-Quellcode:
uses
System.TypInfo;
procedure TForm1.Button1Click(Sender: TObject);
var
LGridOption: TDBGridOption;
LName: string;
begin
for LGridOption := Low(TDBGridOption) to High(TDBGridOption) do
begin
LName:=GetEnumName(TypeInfo(TDBGridOption), Ord(LGridOption));
if LGridOption IN DBGrid1.Options then
begin
Memo1.Lines.Add(LName + '=JA');
end else
begin
Memo1.Lines.Add(LName + '=NEIN');
end;
end;
end;
Timo Real Programmers are surprised when the odometers in their cars don't turn from 99999 to 9999A.
Geändert von timog (24. Apr 2018 um 11:33 Uhr)
Grund: Einrückung angepasst
|