1. Daniel Vivier
  2. PowerBuilder
  3. Thursday, 31 August 2017 14:50 PM UTC

As I understand it, none of the traditional PB methods of catching and handling OLEObject errors are available in Appeon Web, like try/catch blocks, the ExternalException event, and the SystemError event.

I understand that Appeon Web does its own handling of such errors somehow, but could someone please explain what it actually does? I presume there's a messagebox, but then is it ignored? Or does it crash the program (as an unhandled exception would in PB)? Or what?

Thanks.

Daniel Vivier Accepted Answer Pending Moderation
  1. Thursday, 31 August 2017 15:25 PM UTC
  2. PowerBuilder
  3. # 1

Also, if it does ignore such errors and allow the program to continue, is there any way for the program to know what has happened, in order to alter its ongoing behaviour based on the error? (Not relevant if all such problems crash the program - which itself is certainly not ideal!)

Comment
There are no comments made yet.
Daniel Vivier Accepted Answer Pending Moderation
  1. Thursday, 31 August 2017 20:54 PM UTC
  2. PowerBuilder
  3. # 2

I don't understand why try/catch/finally can't be supported - it definitely exists in JavaScript. I just tested the following script to access some dBase data with ADO within an HTML web page, running in IE, and it worked perfectly, including nicely handling any errors with the alert in the catch clause: