H
heron
Unregistered / Unconfirmed
GUEST, unregistred user!
设置数据过滤时,用下面的语句编译可以通过,但运行结果不对
Table1.Active := False;
Table1.Filtered := false;
Table1.Filter := 'Data = ' + ComboBox1.text ;
Table1.Filtered := true;
Table1.Active := True;
改为这样运行结果正确了,可是缺乏灵活性,Help!
Table1.Active := False;
Table1.Filtered := false;
Table1.Filter := 'Data = ''ADanWei''';
Table1.Filtered := true;
Table1.Active := True;
Table1.Active := False;
Table1.Filtered := false;
Table1.Filter := 'Data = ' + ComboBox1.text ;
Table1.Filtered := true;
Table1.Active := True;
改为这样运行结果正确了,可是缺乏灵活性,Help!
Table1.Active := False;
Table1.Filtered := false;
Table1.Filter := 'Data = ''ADanWei''';
Table1.Filtered := true;
Table1.Active := True;