The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP PRIME - APP Programing question
Message #1 Posted by dg1969 on 26 Oct 2013, 6:07 a.m.

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
Message #2 Posted by Han on 26 Oct 2013, 5:14 p.m.,
in response to message #1 by dg1969

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
Message #3 Posted by dg1969 on 27 Oct 2013, 10:23 a.m.,
in response to message #2 by Han

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...


[ Return to Index | Top of Index ]

Go back to the main exhibit hall