Post Reply 
Division by 0 (zero) in an App
03-27-2017, 06:59 AM
Post: #2
RE: Division by 0 (zero) in an App
(03-26-2017 09:48 PM)Bob Frazee Wrote:  Most of the programming I've done has been with Apps. In a "hpprgm", division by 0 is flagged as "X\0". In an App, it dumps you to the home screen, and tells you nothing. It also appears, that in general, the error messages on programming mistakes are not as good on the Apps programming side, as they are on the regular programming side (hpprgm). The division by 0 anomaly has existed for a long time. I was wondering if improving App error message creation is at least being considered?

Apps do not have any means of returning results, including error messages, unlike non-app programs. You can still debug an app by inserting DEBUG statements into your code. This will trigger the debugger to help you trace the errors.

That said, if you need to trap errors, consider IFERR blocks.

But in sum, you are right -- apps require you to be much more vigilant about making sure your code behaves as intended from the design stage.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Division by 0 (zero) in an App - Han - 03-27-2017 06:59 AM
RE: Division by 0 (zero) in an App - Han - 03-28-2017, 11:47 PM
RE: Division by 0 (zero) in an App - Han - 03-30-2017, 01:15 AM
RE: Division by 0 (zero) in an App - Han - 04-02-2017, 10:39 PM
RE: Division by 0 (zero) in an App - Han - 04-04-2017, 03:52 AM



User(s) browsing this thread: 1 Guest(s)