当然错了,应该是
if Pos(adotable1.tablename, combobox1.Items.Text) > 1 then
adotable1.Active :=true;
in是集合操作,用法是这样的
if ssShift in [ssShift, ssAlt] then
if Pos(adotable1.tablename, combobox1.Items.Text) > 1 then
adotable1.Active :=true;
in是集合操作,用法是这样的
if ssShift in [ssShift, ssAlt] then
adotable1.active:=true;
也可以这样用啊
if combobox1.Items.IndexOf(adotable1.tablename)>0 then
adotable1.active:=true;