WAIT(); command Help! (SOLVED!)
05-09-2015, 03:14 AM (This post was last modified: 05-09-2015 11:08 PM by Spybot.)
Post: #1
 Spybot Member Posts: 176 Joined: Feb 2015
WAIT(); command Help! (SOLVED!)
Hello!

I've an issue with the WAIT() command, I have a program that has around 37 subprograms, each of them has only one WAIT(-1); command at the end in order to show some results. My problem now is that... those results resume automatically after 60 seconds (without pressing any key), it doesn't matter if I use WAIT(-1); or WAIT(0); or WAIT;... these results keep fading away after one minute, aren't they supposed to remain in the terminal window indefinitely... until I press a key?, unfortunately they don't. Are there any other parameters of the WAIT() command I can use to keep those results on the screen until I press a key?
I also tried WAIT(300); this one lasts for 5 minutes, but in the mean time I can't resume the program normally ... I have to wait until time is up, ... well yes I can resume by pressing the [ON] key but that kills the whole program, and that's not the idea.

Thank you.

Spybot.
05-09-2015, 11:40 AM
Post: #2
 DrD Senior Member Posts: 1,132 Joined: Feb 2014
RE: WAIT(); command Help!
Perhaps you could make a wait subprogram for your needs?

Code:
 EXPORT w8() BEGIN   repeat until getkey>-1;  // Waits until any key is pressed... END;
05-09-2015, 03:52 PM
Post: #3
 Spybot Member Posts: 176 Joined: Feb 2015
RE: WAIT(); command Help!
Hi DrD!

Thank you very much for your suggestion, it did work!
Unfortunately I still can not figure out why the WAIT() command is not working properly. We wouldn't have to generate our own WAIT pseudo programs, if the WAIT() command work the way it is supposed to.

Spybot.
05-09-2015, 05:48 PM
Post: #4
 DrD Senior Member Posts: 1,132 Joined: Feb 2014
RE: WAIT(); command Help!
Well ... wait() does work as described in the help file. Maybe not to be confused with the way, "it's supposed to," or perhaps the way we expected it might work. These things become less important as we get used to their actual behavior, or at least I can get along with them as such.
05-09-2015, 11:07 PM
Post: #5
 Spybot Member Posts: 176 Joined: Feb 2015
RE: WAIT(); command Help!
Yeah... that's right!
I would just ask Hp for a little update to our help file in the actual calculator and the UG.

Spybot.
 « Next Oldest | Next Newest »

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