HP Forums
HP PRIME - APP Programing question - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP PRIME - APP Programing question (/thread-253922.html)



HP PRIME - APP Programing question - dg1969 - 10-26-2013

Hi,

If I create an applet "MyApp" then edit the program

EXPORT MyApp()
BEGIN
If I put some code here when will it be evaluated ?
What use can we do?
END;

START()
BEGIN
Evaluated at the beginning...
END;
....

Thanks for answers...


Re: HP PRIME - APP Programing question - Han - 10-26-2013

Quote:
Hi,

If I create an applet "MyApp" then edit the program

EXPORT MyApp()
BEGIN
If I put some code here when will it be evaluated ?
What use can we do?
END;

START()
BEGIN
Evaluated at the beginning...
END;
....

Thanks for answers...


Regarding MyApp() -- it's just another function that can be used for whatever you want. It would only be evaluated when called either from the command line (like any other program) or from another program.


Re: HP PRIME - APP Programing question - dg1969 - 10-27-2013

Thanks Han for your answer.
In fact I have try to place code inside the BEGIN END block of the function APP.

EXPORT Function()
BEGIN
RETURN(2*5);
END;

Then launch Function from the command line... I have 10 in response... But the calculator freeze When I try to use APP key or when I try to access to function code with the program editor in order to remove the code... I have to use the reset hole...