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

David Villalobos Cambronero david_villalobos_c at ...43...
Thu Oct 25 14:15:18 CEST 2007


Jejeje you are right, it was so easy. Thanks a lot

David

----- Original Message ----
From: Benoit Minisini <gambas at ...1...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Wednesday, October 24, 2007 12:06:22 PM
Subject: Re: [Gambas-user] Get erros codes in gb.db


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the User mailing list