[Gambas-user] Get erros codes in gb.db

Benoit Minisini gambas at ...1...
Wed Oct 24 20:06:22 CEST 2007


On mercredi 24 octobre 2007, David Villalobos Cambronero wrote:
> Hi all, (again)
>
>     How can I get the error code (not the error message) if somethig with
> the database fails. I mean, if somethig goes bad, Gambas prints a message
> that explain the error, I don't need the message, I need the code.
>
>     Is it possible to get the errors codes? and How?
> Regards.
>
> David
>

Ha ha! DB.Error will return the integer error code returned by the database 
backend. Not all can return one, But mySQL does. Well... check to be sure...

Regards,

-- 
Benoit Minisini




More information about the User mailing list