Delphi中Combobox.Items.IndexOf用法


本文整理自网络,侵删。

  

self.cboSex.ItemIndex:=cboSex.Items.IndexOf(FieldByName('Sex').AsString);
self.dtpBirthday.Date:=FieldByName('Birthday').Value;
self.cboWork.ItemIndex:=cboWork.Items.IndexOf(FieldByName('WorkCaption').AsString);
self.cboRelation.ItemIndex:=cboRelation.Items.IndexOf(FieldByName('RelationCaption').AsString);

相关阅读 >>

Delphi中判断操作系统是否是windows7

Delphi xe(indy10)tidbytes转ansistring的实现

Delphi 指针入门知识

Delphi 获取access中的表名

Delphi自动以管理员身份在vista 和 windows7 下运行程序

Delphi得到系统目录的几个方法

shellexecute的多种用法

Delphi datasnap 上传/下载大文件(本demo以图传片文件为例)

Delphi捕捉屏幕

Delphi xe android的所有权限按照分类总结说明

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...

    暂无评论...