J joann Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #1 Table1.Filter :='Zt ='+''''+ComboBox1.Text+''''; 运行出错 希望高手赐教,特别声明,我不想用Query。
C chlxy Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #2 这样试试 table1.Filter:=format('zt=%s',[''''+combbox1.text+'''']);
L lliuxxingw Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #3 object DataSource1: TDataSource DataSet = Table1 Left = 96 Top = 24 end object Table1: TTable Active = True DatabaseName = 'DBDEMOS' TableName = 'country.db' Left = 48 Top = 24 end Table1.Active:=false; Table1.Filtered:=false; Table1.Filter:='Name='+''''+combobox1.Text+''''; Table1.Filtered:=true; Table1.Active:=true; 没有一点问题
object DataSource1: TDataSource DataSet = Table1 Left = 96 Top = 24 end object Table1: TTable Active = True DatabaseName = 'DBDEMOS' TableName = 'country.db' Left = 48 Top = 24 end Table1.Active:=false; Table1.Filtered:=false; Table1.Filter:='Name='+''''+combobox1.Text+''''; Table1.Filtered:=true; Table1.Active:=true; 没有一点问题
B blue_morning Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #4 Table.Filtered := false; talbe.Filter := 'Zt ='+''''+ComboBox1.Text+''''; table.Filtered := true;
W wrf Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #5 Table.Filtered := false; talbe.Filter := 'Zt ='+'"'+ComboBox1.Text+'"'; table.Filtered := true;
C chuanwang Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #6 talbe.Filter := 'Zt ='+'"'+ComboBox1.Text+'"';
小 小虫飞鱼 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-20 #7 Table1.Filter :='Zt ='''+ComboBox1.Text+''''; 不需要实验了。一定准确。