[Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a

Lewis Balentine lewis at ...3412...
Wed Jan 21 19:50:58 CET 2015


Yep that seems to work. I did try that previously (I think) but it seems 
somewhere along the line I corrupted my database. I started over from 
scratch ... :-(

Overall it has been a very enlightening exercise. Now what was I doing 
before I started this ....?

Lewis


On 01/20/2015 05:17 PM, T Lee Davidson wrote:
> Well, looks like I was wrong again.
>
> Despite the documentation for DataSource.Update saying,
> "Reload the DataSource data and update all bound child controls 
> accordingly,"
> it apparently tries to write to the database.
>
> The .Cancel method is the one to use to, uh, cancel any current 
> modifications.
> DataSource.Cancel: "Cancel any current edition of child controls."
>
>
> Simple sample attached.
>
>
> Lee





More information about the User mailing list