在combobox1的onchange事件中写
if combobox1.itemindex=1 then//数学
begin
combobox2.items.clear;
combobox2.items.add('函数');
...
end
else
begin
combobox2.items.clear;
combobox2.items.add('文言文');
end;
if combobox1.itemindex=1 then//数学
begin
combobox2.items.clear;
combobox2.items.add('函数');
...
end
else
begin
combobox2.items.clear;
combobox2.items.add('文言文');
end;
解决方案 »
- 原创 新作DELPHI 图片图像处理 PS置换滤镜效果,亮度/对比度,纹理贴图 ,无汇编全部GDI·· 大家鉴定下效果
- 听听大家的建议
- 请问哪有树型复选控件下载
- delphi8 or 。net 你选择那一个
- 555....怎么播放.avi文件? 小妹在线等待....
- 如何在RICHEDIT里改变某行字的颜色?或是有什么其他控件可以完成的?
- 简单问题,有时间看一下.
- 怎样获取当前进程,线程,请高手指点!
- treeview的头疼问题,由于仿照WINDOW的节点打钩图标,全下级选了,上级打实钩。。。。
- S3Trio 3D/2X 下使用Delphi,工具条显示不对,更改system.ini没有作用。
- 怎样使用ehLib中的DBGrideh的排序功能!
- 想调用一个dll文件,明明那个文件已经在这里了,但就是说找不到,怎么办?
select 学科 from tabel where 父类编号 = (select 父类编号 from table1 where 学科=:y)
参数 y 值为combobox1选择项
将 学科加入 combobox2中
二
select * from tabel2 where 学科编号=(select 学科编号 where 学科=:x);
参数x值为combobx选择项
那如果我用query控件读到的结果怎么才能传递给combobox,让combobox显示出来(就像把两位的结果组合起来)