心存浪漫

关注

Delphi10.3的DBGrid之外键显示(07)

心存浪漫

关注

阅读 15

2024-01-16

要在设计的时候,界面上显示值

Delphi10.3的DBGrid之外键显示(07)_Text

procedure TForm13.FDQuery1idGetText(Sender: TField; var Text: string;
  DisplayText: Boolean);
begin
if Sender.AsInteger =1  then    text:='一'  else
if Sender.AsInteger =2  then    text:='二'  else
if Sender.AsInteger =3  then    text:='三'  else
if Sender.AsInteger =4  then    text:='四'  else
if Sender.AsInteger =5  then    text:='五'
end;

Delphi10.3的DBGrid之外键显示(07)_Text_02

 

相关推荐

工程与房产肖律师

Delphi10.3原生控件学习,基础学习

工程与房产肖律师 9 0 0

书呆鱼

Delphi10.3中SpinEdit1和UpDown1上下按钮

书呆鱼 5 0 0

Yaphets_巍

达梦数据库在Delphi10.3上的安装与连接

Yaphets_巍 5 0 0

Separes

Delphi10.3的Toolbar1也可以竖起来,就像PhotoShop里一样

Separes 21 0 0

爱喝酒的幸福人

Delphi10.3如何将ListBox1项,拖动 到 右边Memo1当前输入项

爱喝酒的幸福人 33 0 0

开源GIS定制化开发方案

MySQL - MySQL之外键约束

开源GIS定制化开发方案 66 0 0

前程有光

(07)Lazarus DBGrid Datetime类型时下拉选择日期

前程有光 17 0 0

云卷云舒xj

(07)FastReport书码ISBN的添加显示

云卷云舒xj 11 0 0

福福福福福福福福福

键盘字符(#键)显示错误

福福福福福福福福福 13 0 0

工程与房产肖律师

mysql外键显示键列不存在

工程与房产肖律师 17 0 0

精彩评论(0)

0 0 举报