> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, 12 October 1999 13:18
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: BDE Error
>
>
>
>
> There is no exception raised. As it turnes out I have found the reason the
> locate method failed - it was because the text I was searching
> for was misspelt
> in the database (somehow I missed the spelling error the first 20 times I
> checked for it :-). However, it's still an interesting question
> because if you
> follow the vcl source code to the point where it makes the call
> to the bde, an
> error code *is* returned and checked against the constant DBI_NOERROR (or
> something similar - I can't check it at the moment). So
> apparently even thought
> the locate function does not raise an exception if it fails, it
> does receive an
> error code back from it's call to the BDE, and it then returns
> false from the
> locate function. Stepping through that code I think the error
> code returned was
> something like 8172 so I was wondering (even though it's
> irrelevant now) if
> there was a call to obtain that error code - effectively the last error
> encountered by the BDE.

If no other BDE calls have been made since then it looks like
DBIGetErrorEntry would return the error stack but the stack is cleared the
next time that a BDE function is called.

============================================
Patrick Dunford, Christchurch, NZ
http://patrick.dunford.com/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to