Post Reply 
HP50g UserRPL Comments
10-23-2018, 12:27 AM
Post: #1
HP50g UserRPL Comments
Is there a way to comment out code in a UserRPL program on the HP50g ?
Find all posts by this user
Quote this message in a reply
10-23-2018, 02:57 AM
Post: #2
RE: HP50g UserRPL Comments
(10-23-2018 12:27 AM)bobager Wrote:  Is there a way to comment out code in a UserRPL program on the HP50g ?

From the 50g AUR Manual, page 1-7:

Quote:To include a comment in a program:
* Enclose the comment text between two @ characters.
or
* Enclose the comment text between one @ character and the end of the line.
Whenever the calculator processes text entered in the command line — either from keyboard entry or transferred
from a computer — it strips away the @ characters and the text they surround. However, @ characters are not affected if they’re inside a string.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
10-23-2018, 07:29 PM
Post: #3
RE: HP50g UserRPL Comments
rprosperi,

Thank you for your reply. I did look for it in the AUR but somehow missed
it the first time, as you said it is right there on 1.7.
Find all posts by this user
Quote this message in a reply
10-23-2018, 09:24 PM
Post: #4
RE: HP50g UserRPL Comments
(10-23-2018 07:29 PM)bobager Wrote:  Thank you for your reply. I did look for it in the AUR but somehow missed
it the first time, as you said it is right there on 1.7.

I must confess it took me longer than expected to find it (I wanted to quote exactly); I never thought it would be so early in the AUR, and was also surprised there seemed to be no mention in the User's Guide nor User's Manual.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
10-23-2018, 10:31 PM
Post: #5
RE: HP50g UserRPL Comments
(10-23-2018 12:27 AM)bobager Wrote:  Is there a way to comment out code in a UserRPL program on the HP50g ?

I use "comment" DROP for commenting, but only at non-time relevant parts. The @-comments are removed when saving direct on the 50g. Maybe it helps.

Best regards,
Joerg
Find all posts by this user
Quote this message in a reply
10-24-2018, 01:00 PM
Post: #6
RE: HP50g UserRPL Comments
(10-23-2018 12:27 AM)bobager Wrote:  Is there a way to comment out code in a UserRPL program on the HP50g ?

Hi guy!
Just save a copy of your entire program with comments in a string variable.
You’ll have two objects: a string and a program.
Whenever you want to edit your program, edit the string one first, save it and then convert it into a program (use OBJ->)

I hope it will help.

Cheers!

Guy R. KOMAN, hp 50G, hp Prime Rev. C
Find all posts by this user
Quote this message in a reply
Post Reply 




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