RSS
热门关键字:  数据挖掘  数据仓库  商业智能  人工智能  搜索引擎

ComboBox的DataValue值

来源: 作者:unkonwn 时间:2005-08-18 点击:
procedure TForm1.Button1Click(Sender: TObject); var s : string; begin combobox1.Clear; s := "01"; combobox1.Items.AddObject("北京",TObject(s)); s := "02"; combobox1.Items.AddObject("天津",TObject(s)); s := "03"; combobox1.Items.AddObject("上海",TObject(s)); end; procedure TForm1.ComboBox1Change(Sender: TObject); begin edit1.Text := string(combobox1.Items.Objects[combobox1.ItemIndex]); end;
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
匿名?