Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Re: Re: AlertError does not stop code execution

Integrated Application Platform › Forums › General › [SOLVED]AlertError does not stop code execution › Re: Re: AlertError does not stop code execution

August 14, 2014 at 4:06 pm #1070
amckinlay
Keymaster

AlertError is just an Alert (MessageBox) with an “error” icon. It is not intended to stop execution.

In a GUI program, “stopping” is not quite the same as in straight procedural code. e.g. if you are in a button handler, you can just return to not do anything further for that button press.

To roll back database changes, you need to be inside a transaction. (And database changes must be specifically associated with that transaction in order to be rolled back.)

If you use the “block” form of Transaction and the code throws an exception, then the transaction is automatically aborted and the changes rolled back.

I hope that helps.

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language