Division by 0 (zero) in an App
|
04-02-2017, 10:39 PM
Post: #10
|
|||
|
|||
RE: Division by 0 (zero) in an App
(04-02-2017 08:06 PM)Bob Frazee Wrote: Han wrote; This suggests that the START() function is where your app gets run. The code you posted confirms this. Quote:I presume that HeatIndex() starts the program, and even though it appears to do nothing, the BEGIN END pair has to be there, or the App will not run. If it actually does nothing, then it should execute the next instruction, which is the VIEW command. The order of this App follows the DiceSimulation() App example on p 579 of the manual. In this case, where you have the START function defined with the VIEW command, I would simply rename it and create a wrapping START function. Code:
Now, you can add EXPORT in front of START and debug normally. Or, you can optionally just insert the DEBUG command anywhere in your code where you wish to start the debugging process. I find this second method much easier. By using multiple calls to the DEBUG command, I "skip" unnecessary debugging steps using the "continue" option, which runs the app/program up until the next instance of DEBUG. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Division by 0 (zero) in an App - Bob Frazee - 03-26-2017, 09:48 PM
RE: Division by 0 (zero) in an App - Han - 03-27-2017, 06:59 AM
RE: Division by 0 (zero) in an App - cyrille de brébisson - 03-28-2017, 05:55 AM
RE: Division by 0 (zero) in an App - Bob Frazee - 03-28-2017, 11:37 PM
RE: Division by 0 (zero) in an App - Han - 03-28-2017, 11:47 PM
RE: Division by 0 (zero) in an App - cyrille de brébisson - 03-29-2017, 05:44 AM
RE: Division by 0 (zero) in an App - Bob Frazee - 03-30-2017, 12:45 AM
RE: Division by 0 (zero) in an App - Han - 03-30-2017, 01:15 AM
RE: Division by 0 (zero) in an App - Bob Frazee - 04-02-2017, 08:06 PM
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)