Subject | How to trap the 'No records found' error? |
---|---|
Author | Salvatore Besso |
Post date | 2004-08-19T08:59:48Z |
hello all,
I have noticed that there is no way to trap the 'No records found' standard
error (of type EIB_DatasetError) when the search returns no rows. I have
tried the OnPostError and OnError events of the TIB_Query, the OnError
event of the TIB_Transaction and of the TIB_Connection, but with no luck. I
have no idea of which code I can enclose into a try except block to trap
this error because I don't see any suitable part where to place this block.
I'm using a search bar, a search panel and a TIB_Grid.
Is there any way to trap it since I prefer to show a normal informative
dialog instead of an error.
Regards
Salvatore
I have noticed that there is no way to trap the 'No records found' standard
error (of type EIB_DatasetError) when the search returns no rows. I have
tried the OnPostError and OnError events of the TIB_Query, the OnError
event of the TIB_Transaction and of the TIB_Connection, but with no luck. I
have no idea of which code I can enclose into a try except block to trap
this error because I don't see any suitable part where to place this block.
I'm using a search bar, a search panel and a TIB_Grid.
Is there any way to trap it since I prefer to show a normal informative
dialog instead of an error.
Regards
Salvatore