HP Forums

Full Version: startapp () question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
Reference URL's