上
上帝的关爱
Unregistered / Unconfirmed
GUEST, unregistred user!
我做了个简单的测试,用了DBISAMTable,DBISAMQuery,Tdatasource控件
代码:
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
DBISAMTable1.Close;
DBISAMQuery1.Close;
DBISAMTable1.EmptyTable;
DBISAMQuery1.SQL.Text := 'select * from DBISAMQuery1';
DBISAMQuery1.RequestLive := True;
DBISAMQuery1.Active:=True;
DBISAMQuery1.open;
with DBISAMQuery1 do
begin
DisableControls;
Append;
FieldByName('a').AsString := '123';
FieldByName('b').AsString :='hgjj';
FieldByName('c').AsString :='123';
FieldByName('d').AsString :='hhgjh';
FieldByName('e').AsString :='hhgjh';
Post;
EnableControls;
end;
运行提示:DBISAM Error #11010 Table or backup file 'DBISAMQuery1' does not exist.
的错误,请问到底是哪里出错了,怎么才能创建Memory内存表,具体说明下!~
代码:
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
DBISAMTable1.Close;
DBISAMQuery1.Close;
DBISAMTable1.EmptyTable;
DBISAMQuery1.SQL.Text := 'select * from DBISAMQuery1';
DBISAMQuery1.RequestLive := True;
DBISAMQuery1.Active:=True;
DBISAMQuery1.open;
with DBISAMQuery1 do
begin
DisableControls;
Append;
FieldByName('a').AsString := '123';
FieldByName('b').AsString :='hgjj';
FieldByName('c').AsString :='123';
FieldByName('d').AsString :='hhgjh';
FieldByName('e').AsString :='hhgjh';
Post;
EnableControls;
end;
运行提示:DBISAM Error #11010 Table or backup file 'DBISAMQuery1' does not exist.
的错误,请问到底是哪里出错了,怎么才能创建Memory内存表,具体说明下!~