|
|
procedure TComLocateFrm.LocateBtnClick(Sender: TObject); var setLoOptions : TLocateOptions; i : integer; slKeys : TStrings; begin if ComboBox1.Items.IndexOf(ComboBox1.Text)<0 then try slKeys := TStringList.Create; slKeys.AddStrings(ComboBox1.Items); ComboBox1.Items.Clear; ComboBox1.Items.Add(ComboBox1.Text); for i := 0 to 8 do if i < slKeys.Count then ComboBox1.Items.Add(slKeys.Strings[i]); finally slKeys.Free; 数据挖掘研究院 end else begin i := ComboBox1.Items.IndexOf(ComboBox1.Text); ComboBox1.Items.Insert(0,ComboBox1.Text); ComboBox1.Items.Delete(i+1); ComboBox1.ItemIndex := 0; end; 数据挖掘实验室
if rdoExactly.Checked then setLoOptions := [] else setLoOptions := [loPartialKey]; if Not DesDataSet.Locate("ZTM", ComboBox1.Text, setLoOptions) then MessageBox(Handle, "没有找到符合条件的记录。", "提示", 0+64); end;
2004年12月21日21:45:59 数据挖掘论坛 
|
数据挖掘论坛
|
|
|
|
[数据挖掘专家]
[数据挖掘研究院]
[数据挖掘论坛]
[数据挖掘实验室]
|
上一篇:ADO带密码的数据连接、查询一个记录集、执行一SQL语句
下一篇:200开发技术年度综述之Windows开发
|