Post Reply 
Controlling program exit
11-30-2020, 01:57 AM
Post: #20
RE: Controlling program exit
(11-21-2020 11:54 PM)cahlucas Wrote:  
(11-21-2020 04:53 PM)Han Wrote:  This will generally be the case if your code exits the REPEAT loop and continues onward to any remaining code in your program. The screen will only update if you issue any commands to alter the screen -- be it to print a message, display an image, or simply to refresh to screen. On the other hand, if your code exits the program completely upon reach the UNTIL command, then the display should return to the Home/CAS view as well as the result of the very last command. In the case of the code snippet I used, I see a 1 returned, which is the result of the equality test within the UNTIL command. Could you share a little more of what your goals are for your code? It's hard to provide more feedback without knowing what you want your code to do.
Dear Mr. Han,
The general idea is that when the program ends, you go back to where you originally came from. So if you started the program from the program catalog, you will also return there. This is what my program does when you close the program. however if you started the program from e.g. home, you will still end up in the program catalog. And actually that is not the intention. The 1 that comes back is actually unwanted. But as I already wanted to clarify in my previous comment, I don't have a solution for that yet. I hope this clarifies the problem definition. Maybe someone can help me with this? Sincerely, Karel.

Out of curiosity, are you using a STARVIEW command near the exit of your program? (I'm asking in reference to mentioning that even when running the program from Home, it returns to the program catalog.)

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


Messages In This Thread
Controlling program exit - cahlucas - 11-13-2020, 05:03 PM
RE: Controlling program exit - cahlucas - 11-13-2020, 10:16 PM
RE: Controlling program exit - Han - 11-13-2020, 10:44 PM
RE: Controlling program exit - cahlucas - 11-13-2020, 11:08 PM
RE: Controlling program exit - Jacob Wall - 11-14-2020, 04:31 PM
RE: Controlling program exit - cahlucas - 11-15-2020, 07:55 PM
RE: Controlling program exit - Jacob Wall - 11-15-2020, 10:58 PM
RE: Controlling program exit - cahlucas - 11-17-2020, 05:31 PM
RE: Controlling program exit - Jacob Wall - 11-17-2020, 09:08 PM
RE: Controlling program exit - cahlucas - 11-18-2020, 05:55 PM
RE: Controlling program exit - Han - 11-17-2020, 10:15 PM
RE: Controlling program exit - Han - 11-18-2020, 09:41 PM
RE: Controlling program exit - cahlucas - 11-20-2020, 01:59 AM
RE: Controlling program exit - Han - 11-21-2020, 04:53 PM
RE: Controlling program exit - cahlucas - 11-21-2020, 11:54 PM
RE: Controlling program exit - Han - 11-30-2020 01:57 AM
RE: Controlling program exit - cahlucas - 11-30-2020, 10:01 PM



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