Recent

Author Topic: Old problem still exists:"Run-time error 202"  (Read 4430 times)

rabbit

  • New Member
  • *
  • Posts: 11
Old problem still exists:"Run-time error 202"
« on: October 20, 2006, 04:33:47 am »
I use Win2k+lazarus0.9.18+firebird 1.5.3.4870,and recent zeos from http://zeos.firmos.at/.
zeos installed ok.I can link to a firebird database,create a new database and add new table to it.but when I open an existing table,I got the error:"Unknown Run-Time error.Press OK to ignore and risk data corruption.press cancel to kill the program."
here is the code to open a table:
(Already linked to a databse using ZConnection1, all corresponding properties of ZConnection1,ztable1,Dbgrid1 and DBNavigator1 were set at deign time)
Code: [Select]
procedure TForm1.btnOKClick(Sender: TObject);
begin
  ZTable1.TableName := DBListBox1.GetSelectedText;
  ZTable1.Active := True;
  Dbgrid1.Visible := True;
  ZTable1.Edit;
  DBNavigator1.Visible := True;
end;  

 

TinyPortal © 2005-2018