Board index » delphi » detecting an indexError

detecting an indexError

How can I detect if there is an IndexError opening a table?

Thanks

 

Re:detecting an indexError


Using Paradox I go Last The First when opening a table for the first time in
a application.  I do not do this on every open, only create of application.

try
  Table1.Open;
  Table1.Last;
  Table1.First;
  Table1.Close;
except
  // do something here
  on E:Exception do
    ShowMessage(E.Message);
end;

--
--
Lewis Howell
Lou's Delphi Tip of the Day:
http://members.truepath.com/delphi
Lou's personal webpage:
http://members.truepath.com/LewisHowell

Quote
Jan Irrek wrote in message <7dt977$c...@forums.borland.com>...
>How can I detect if there is an IndexError opening a table?

>Thanks

Other Threads