Post Reply 
Division by 0 (zero) in an App
04-03-2017, 11:44 PM
Post: #11
RE: Division by 0 (zero) in an App
Thankyou Han for your explanation. I took your examples and modified them a little, and this is what I ended up with;
Code:

//Variables... 
t;rh;
hi;hi2;tmp;

// Subroutine...
HeatIndexCalc();

EXPORT START()
BEGIN
STARTVIEW(-1,1);
WHILE GETKEY<>4 DO
.
.
.
The rest of the code follows unchanged (see previous post)
I buried a divide by zero in the HeatIndexCalc () subroutine, EXPORTED START to the home screen and ran it. This time instead of just dumping me to the home screen and telling me nothing, it dumped me to the home screen and displayed a dialog box with an "X START" in it. Really not as useful as a "divide by zero" error message that a regular hpprgm displays. I use divide by zero as an example, because it is pretty cut and dried and should be easy to catch. I know I have had other errors that have dumped me to the home screen and told me nothing, but I don't have them documented, and they may be a lot more difficult to alarm.

So back to my original question to the Hp group;
The division by 0 anomaly in an App has existed for a long time. I was wondering if improving App error message creation is at least being considered?
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 - Bob Frazee - 04-03-2017 11:44 PM
RE: Division by 0 (zero) in an App - Han - 04-04-2017, 03:52 AM



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