HP Forums
startapp () question - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: startapp () question (/thread-5487.html)



startapp () question - ji3m - 01-09-2016 03:33 PM

Is startapp (..) a "CALL" or a context switch?
I note there is no "endapp".

A program in MYAPP calls DOPLOT (..) repeatedly
to animate the plot:

DOPLOT (fun)
BEGIN
STARTAPP ("FUNCTION");
.....change Function F1:=fun
STARTVIEW (1,1);
WAIT (1);
STARTVIEW( "MYAPP");
END;


This all works fine but am I winding up some sort of stack or is this legitimate?


RE: startapp () question - cyrille de brébisson - 01-11-2016 05:52 AM

Hello,

Startapp does just waht it says, it changes the current app. This exits the current view if the current view belong to the current app, and then it executes the initialization code of the newly started app.
This is not a "call". Which is why there is no end app (as there is always one active app).

Cyrille