数据库表显示问题(0分)

  • 主题发起人 主题发起人 gubing
  • 开始时间 开始时间
G

gubing

Unregistered / Unconfirmed
GUEST, unregistred user!
请问我的字段是True和False ,怎么在Grid表格里显示的时候True能显示为“是”,False能显示成“否”呢?
 
procedure TFrmSaleOrder.cdsMastShFlagGetText(Sender: TField; var Text: String; DisplayText: Boolean);
begin
case Sender.AsInteger of
0:Text:='草稿';
1:Text:='已审核';
2:Text:='已排产';
3:Text:='已发货';
4:Text:='已收款';
end;
end;
 
cdsMast.FieldByName('flag').OnGetText:=cdsMastShFlagGetText;
 
这是在哪个事件里呢?
SQL里的Select语句应该怎么写?
 
afterscorll
 

Similar threads

回复
0
查看
1K
不得闲
回复
0
查看
886
不得闲
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
后退
顶部