level 1
长虹64
楼主
将 难度系数=2 and 题号 > 10 过滤条件 直接填在Table1.Filter属性框里可以运行,但将其移到按钮里
procedure TForm1.Button2Click(Sender: TObject);
begin
Table1.Filter:=难度系数=2 and 题号 > 10;
table1.filtered:=true;
end;
再编译时就会出错了。
[错误] Unit1.pas(45): Illegal character in input file: *难* ($C4D1)
[错误] Unit1.pas(45): Illegal character in input file: *题* ($CCE2)
[致命错误] Project1.dpr(5): Could not compile used unit *Unit1.pas*
2014年08月17日 13点08分
1
procedure TForm1.Button2Click(Sender: TObject);
begin
Table1.Filter:=难度系数=2 and 题号 > 10;
table1.filtered:=true;
end;
再编译时就会出错了。
[错误] Unit1.pas(45): Illegal character in input file: *难* ($C4D1)
[错误] Unit1.pas(45): Illegal character in input file: *题* ($CCE2)
[致命错误] Project1.dpr(5): Could not compile used unit *Unit1.pas*