[Gambas-user] How to know if a deletion from database succeded?

Doriano Blengino doriano.blengino at ...1909...
Wed Oct 8 07:40:03 CEST 2008


In my program I have to delete some records from a table (to rewrite 
them just after).
If I issue something like:

    res = db.Exec("delete from lotti where tcaus=2 and numfat=25")

how can I know that the deletion has been executed without errors? Has 
the "res" variable any meaning after a deletion, or a error is raised in 
case of unsuccessful deletion?

Thanks.





More information about the User mailing list