L
lk007
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject
const Rect: TRect;
DataCol: Integer
Column: TColumn
State: TGridDrawState);
begin
memo1.Lines.add(GetEnumName(Typeinfo(TGridDrawState),Ord(State)));
为什么提这个错??? ord不能用于State??????????????????????????
==============================
[Error] Unit1.pas(39): Incompatible types
const Rect: TRect;
DataCol: Integer
Column: TColumn
State: TGridDrawState);
begin
memo1.Lines.add(GetEnumName(Typeinfo(TGridDrawState),Ord(State)));
为什么提这个错??? ord不能用于State??????????????????????????
==============================
[Error] Unit1.pas(39): Incompatible types