HP Forums
access notes and programs from program? - 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: access notes and programs from program? (/thread-7049.html)



access notes and programs from program? - moonbeam - 10-16-2016 12:38 AM

(deleted by author)


RE: access notes and programs from program? - Mark Hardman - 10-16-2016 01:17 AM

(10-16-2016 12:38 AM)moonbeam Wrote:  Is it possible to read from and write to notes and programs from a program?

No offense. Did you even try to search for an answer before posting?

From the "Notes" entry in the online help:

Code:
The Notes variable gives access to the notes saved in the calculator.

With no argument, Notes returns a list of the names of all the notes in the calculator.

Notes(n) returns the contents of the nth note in the calculator (1 to NbNotes).

Notes("name") returns the contents of the note called name.

This command can also be used to define, redefine or clear a note.

Notes(n):="string" sets the value of note n. If the string is empty, the note is erased.

Similarly, Notes("name"):="string" sets the value of note "name". If string is empty, the note is erased. If there is no note called "name", creates it with string as content.

From the "Programs" entry in the online help:

Code:
The Programs variable gives access to the programs saved in the calculator.

Programs returns the list of the names of all the programs in the calculator.

Programs(n) returns the content of the nth program in the calculator (1 to NbPrograms)

Programs(n):="string" sets the program source code for program n. If String is empty, erases the program.

Programs("name") returns the source of program "name".

Programs("name"):="string" sets program "name" source code to string. If string is empty, erases the program. If there is no program called "name", creates it.