Post Reply 
Running program from Home or Program menu
11-25-2019, 03:56 PM (This post was last modified: 11-25-2019 04:16 PM by Gene222.)
Post: #4
RE: Running program from Home or Program menu
(11-24-2019 11:06 PM)pinkman Wrote:  Two types of execution, two results:
- Home: ok
- Program menu: error
- Debug: it halts with error on line NN:=NN+1

Notice: when replacing isprime(NN) with NN>20 it works without any error.

Can someone explain?

I noticed that some advanced functions, like fsolve, sometimes require the variable to be a LOCAL global or EXPORT global variable. Try replacing the "LOCAL NN" with "EXPORT NN" and place the variable declaration on the first line of the code. I have no idea why this sometime works.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Running program from Home or Program menu - Gene222 - 11-25-2019 03:56 PM



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