Subject | RE: [IBO] How to trap the 'No records found' error? |
---|---|
Author | Jason Wharton |
Post date | 2004-08-19T21:39:47Z |
If you don't want the error then call the Open method instead of the Post
method.
Jason Wharton
-----Original Message-----
From: Salvatore Besso [mailto:s.besso@...]
Sent: Thursday, August 19, 2004 2:00 AM
To: Lista IB Objects
Subject: [IBO] How to trap the 'No records found' error?
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
method.
Jason Wharton
-----Original Message-----
From: Salvatore Besso [mailto:s.besso@...]
Sent: Thursday, August 19, 2004 2:00 AM
To: Lista IB Objects
Subject: [IBO] How to trap the 'No records found' error?
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