combobox 与表中字段名的问题 combobox1.textif radiobutton1.checked then table1.fieldbyname('..'):=radiobutton1.caption; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Table1.fieldbyname(ComboBox1.Text).asstring:=Edit.Text; if combobox1.text='昏否' then……else if combobox1.text='性别' then……是不是这个意思,.text属性表示combobox中选择的文字内容。 我用了combobox1.itemindex已经解决了,但是我怎么知道选中了那个单选按钮?我用if radiobutton1.checked then if radiobutton2.checked then好像很麻烦,有没有好的方法,一条语句就能判断呀 用radiogroup.table1.fieldbyname('marriage').asstring:=radiogroup1.Items.Strings[radiogroup1.ItemIndex] 也可以这样的:table1.fieldbyname('Sex'):=ComboBox1.Text;table1.fieldbyname('Marriage'):=ComboBox2.Text 用TRadioGroup控件代替多个TRadioButton控件,TRadioGroup也有ItemIndex属性,试一试! BDE的TQUERY控件打开DBF表时的问题? mdi子窗体问题郁闷 怎样调试delphi内部代码? Ado --destory --free Delphi 连接远程服务器的sql server 数据库 关于线程模式选择的问题???请教各位,请跟我来哦 关于图象存储? 如何用内部控制语句实现StringGrid的滚动显示? 50分问一个关于String的问题 有没有哪位用线程操作数据库的经验? 有关自动换行的问题 为何dbgrideh在使用时,常常会在行列之间出现不连贯线条,刷新无法去除,请有类似经历高手帮助解决该问题
if combobox1.text='昏否' then
……
else if combobox1.text='性别' then
……
是不是这个意思,.text属性表示combobox中选择的文字内容。
我用if radiobutton1.checked then
if radiobutton2.checked then
好像很麻烦,有没有好的方法,一条语句就能判断呀
table1.fieldbyname('marriage').asstring:=radiogroup1.Items.Strings[radiogroup1.ItemIndex]
table1.fieldbyname('Sex'):=ComboBox1.Text;
table1.fieldbyname('Marriage'):=ComboBox2.Text