Notes and help
02-21-2015, 10:24 AM
Post: #1
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
Notes and help
hi,

two questions...

1. It' not so easy write a Note in Prime...
today, I was writing a note, and the Prime had a reset while I was inserting bold style to a word. I hope it's only a random behavior, but the note has been erased...

2. Is it possible to make an help for a custom program, insert in it or associate to it, to give user info when he/she press Help key?

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-21-2015, 08:27 PM
Post: #2
 bobkrohn Member Posts: 140 Joined: Dec 2014
RE: Notes and help
It's not YOU doing something wrong.

Notes is very buggy and unstable.
I've been trying to write programs to read/write data to/from Notes.
Numerous crashes and bizarre results.
02-21-2015, 08:28 PM
Post: #3
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-21-2015 08:27 PM)bobkrohn Wrote:  It's not YOU doing something wrong.

Notes is very buggy and unstable.
I've been trying to write programs to read/write data to/from Notes.
Numerous crashes and bizarre results.

I understand... :-(

thank you

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-22-2015, 10:22 AM
Post: #4
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
Hello salvo,
You may look for real examples.

In the manual there is also an example (User_Guide_EN.pdf), page 517+518 ff.

Maybe it's easier to write the note with the CK (connectivity kit), or copy your prepared note(s) from other editors to the note within CK.

@bob:
As others mentioned to your threads, it's difficult to help if we do not know your programs.
02-22-2015, 10:33 AM
Post: #5
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-22-2015 10:22 AM)Thomas_Sch Wrote:  Maybe it's easier to write the note with the CK (connectivity kit), or copy your prepared note(s) from other editors to the note within CK.

hello Thomas, thank you for help.
For my purpose, I think to write notes better with CK, indeed.
I don't know if there are other editors...
Surely, in Prime it's boring write in Notes, also if it's an interesting idea can do that.

No idea how to create help for my programs?

Regards
Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-22-2015, 10:59 AM
Post: #6
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-22-2015 10:33 AM)salvomic Wrote:  No idea how to create help for my programs?

He is working on a version combining both.

I didn't see an example usind the build in HELP button.

Thomas
02-22-2015, 11:04 AM
Post: #7
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-22-2015 10:59 AM)Thomas_Sch Wrote:  I didn't see an example usind the build in HELP button.

yes, I saw the Wolfgang's nice job, but for now I'm not using Drawmenu, only little programs (also CAS) with few functions.
I would like to suggest almost the use of parameters to user and myself (and not only using comments in the program)...

Indeed I would like use just the built in HELP button, if it's possible.

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-22-2015, 11:10 AM (This post was last modified: 02-22-2015 11:12 AM by Thomas_Sch.)
Post: #8
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-22-2015 11:04 AM)salvomic Wrote:  Indeed I would like use just the built in HELP button, if it's possible.
You could send am Mail/PM to TW (Tim Wessman).
Maybe he will add your idea to the wishlist for the next FW version(s) ;-)
02-22-2015, 11:53 AM
Post: #9
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-22-2015 11:10 AM)Thomas_Sch Wrote:  You could send am Mail/PM to TW (Tim Wessman).
Maybe he will add your idea to the wishlist for the next FW version(s) ;-)

I don't want to bore Tim, but yes, also this one would be a nice thing to add in the next FW.
I'm looking forward for a new FW with all improvements suggested in this Forum, soon :-)

TU, Thomas!
Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-23-2015, 07:37 AM
Post: #10
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
If you could add a PPL program, you can catch the HELP key:
Code:
EXPORT HKEY() BEGIN   PRINT();   PRINT("TEST");   WHILE GETKEY == -1 DO      IF GETKEY ==3 THEN PRINT ("Helpbutton pressed"); END;   END; END;
02-23-2015, 08:36 AM
Post: #11
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-23-2015 07:37 AM)Thomas_Sch Wrote:  If you could add a PPL program, you can catch the HELP key:
...

I'll try, Thomas.
However I would only add a text in the Help section that the user could see if he press Help key, and for the rest uses normally the program...
I'll try soon with your hint.

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-23-2015, 09:49 AM (This post was last modified: 02-23-2015 09:50 AM by Thomas_Sch.)
Post: #12
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-23-2015 08:36 AM)salvomic Wrote:  However I would only add a text in the Help section that the user could see if he press Help key, and for the rest uses normally the program...

The build in Help will be in the firmware, therefore not to change by users. (like "ROM")
But under control of your program you can catch the Help key, and display a note (read the note and display with print or textout(_p). A Note will have the advantage of beeing easy to change and save, like with the CK.

02-23-2015, 10:01 AM
Post: #13
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-23-2015 09:49 AM)Thomas_Sch Wrote:  The build in Help will be in the firmware, therefore not to change by users. (like "ROM")
But under control of your program you can catch the Help key, and display a note (read the note and display with print or textout(_p). A Note will have the advantage of beeing easy to change and save, like with the CK.

yes, I think the built in Help is in the firmware, sure...
I'm trying notes("test"):="Help me with test" in Prime and I get: table("test" = "Help me with test"), but how is now this variable? I can't find it in Notes, and writing "test" I get ..."test", not the text. What's "table"?

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-23-2015, 10:13 AM (This post was last modified: 02-23-2015 10:27 AM by Thomas_Sch.)
Post: #14
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-23-2015 10:01 AM)salvomic Wrote:  In the threads you advise they write about new commands, Notes() and Programs()...
I'm trying notes("test"):="Help me with test" in Prime and I get: table("test" = "Help me with test"), but how is now this variable? I can't find it in Notes, and writing "test" I get ..."test", not the text. What's "table"?
I don't know whats "table" here (you are trying from CAS, right?), maybe notes() does have an other meaning in CAS.
Code:
Notes("test"):="Help me with test"
instead of notes(). (capital N). This worked for me in Home and in CAS mode.
Edit:
If your Note "test" contains some lines of text (edited with the Notes function or via CK), your program simply can send this Note (the content) to the terminal by using
Code:
PRINT(Notes("test")
The terminal may be cleaned by pressing backspace. See Help for "PRINT".
02-23-2015, 10:25 AM
Post: #15
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-23-2015 10:13 AM)Thomas_Sch Wrote:  I don't know whats "table" here (you are trying from CAS, right?), maybe notes() does have an other meaning in CAS.
yes, I'm 80% of the time in CAS (I go in Home mostly for Apps and for quick calculation) :-)
if you write notes("title"):="..." (lowercase) you get all notes added to a variable called "table", i.e table("test" = "my test foo", "helpme" = "my test bar", "two" = "how can I delete it?")...

Code:
Notes("test"):="Help me with test"
instead of notes(). (capital N). This worked for me in Home and in CAS mode.

ok, with N uppercase it works also in CAS!
So it useful, as we get real note.

If it's not possible to add help to custom programs, perhaps we could do something adding notes...

However I tried also your code for handling Help button, I think to try using it as a "wrapper" for a program, otherwise I'm not sure how use when the program starts: the user input programName(par1, par2), now to have the help I probably must start with the "wrapper" to handle help key and start the functions of the program, am I wrong?

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-23-2015, 10:34 AM (This post was last modified: 02-23-2015 10:36 AM by Thomas_Sch.)
Post: #16
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-23-2015 10:25 AM)salvomic Wrote:  However I tried also your code for handling Help button, I think to try using it as a "wrapper" for a program, otherwise I'm not sure how use when the program starts: the user input programName(par1, par2), now to have the help I probably must start with the "wrapper" to handle help key and start the functions of the program, am I wrong?
Yes, it's a simple wrapper (idea from Wolfgang, it's not from my brain!).

If yur user enters programName(par1, par2), this idea may not be optimal.
But if the user enters programName("help") or programName("h") or even programName("?") you may check the parameters (i have seen another discussion in the forum), and print the help text, directly or by using Print(Notes("programNameHelp")).
Just an idea.
02-23-2015, 10:38 AM (This post was last modified: 02-23-2015 10:39 AM by salvomic.)
Post: #17
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-23-2015 10:34 AM)Thomas_Sch Wrote:  If yur user enters programName(par1, par2), this idea may not be optimal.
But if the user enters programName("help") or programName("h") or even programName("?") you may check the parameters (i have seen another discussion in the forum), and print the help text, directly or by using Print(Notes("programNameHelp")).

yes, good idea, thanks (also thanks to Wolfgang, sure)
I'm thinking of it.

However I find Notes() also helpful, indeed. I don't know if it was a decision of the programmer of the FW, but I saw the command is not listed in Catalog...

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
02-23-2015, 10:59 AM
Post: #18
 Thomas_Sch Senior Member Posts: 308 Joined: Dec 2013
RE: Notes and help
(02-23-2015 10:38 AM)salvomic Wrote:  However I find Notes() also helpful, indeed. I don't know if it was a decision of the programmer of the FW, but I saw the command is not listed in Catalog...
because it's not a command, it is a variable. Try the help system, there you will find "Notes" ;-)
02-23-2015, 11:10 AM
Post: #19
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
RE: Notes and help
(02-23-2015 10:59 AM)Thomas_Sch Wrote:  because it's not a command, it is a variable. Try the help system, there you will find "Notes" ;-)

found it!

thanks

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)