HP Forums
New Notes() and Programs() commands - 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: New Notes() and Programs() commands (/thread-2575.html)



New Notes() and Programs() commands - Giancarlo - 12-06-2014 10:00 PM

Hello,
i just tested the new Notes() command and it works well. It's nice to create notes from programs.
For further information please check the Help tool on the virtual or real prime calculator.

I was able to retrieve the Whole list of notes, the content of a note and create a new one.

The Programs() command should do the same on the program side and I was able to:
- retrieve the whole list of programs;
- list a specific program
but i was unable to create a new program from a program. Just to be less vague here you are my snippet code:

BEWARE BECAUSE THE EXECUTION OF THIS CODE CRASHES THE VIRTUAL CALCULATOR. I also lost the full memory of the virtual calc.

Code:

EXPORT Prova_comandi_6940()
BEGIN
//Notes("ppn"):="Ciao dalla tua prime";
Programs("ppn")=Programs(1);
PRINT(Programs("ppn"));
END;

Any help?

Thanks

Giancarlo


RE: New Notes() and Programs() commands - Didier Lachieze - 12-17-2014 12:53 AM

I have done some tests with the Notes() and Programs() commands with Rev 6975. They work fine so far.

I think that there is an error in your program: the ":" is missing before the "=" on the line "Programs("ppn")=Programs(1);"

With "Programs("ppn"):=Programs(1);" everything works fine. Without ":" the virtual calculator crashes (but without a memory lost).


RE: New Notes() and Programs() commands - Giancarlo - 12-17-2014 01:12 AM

Hello Didier,
Thanks for finding this little glitches that i create from time to time :+)

One nice application of the notes() command could be to save programs information in a file like the terminal window and retrieve them for future reference.

The program() command could be nice to use in order to feed a choose command and select the program to run.

Any other usage?

Thanks

Giancarlo