problems when paste text // (commentary) to the entry line
|
06-05-2016, 11:17 PM
(This post was last modified: 06-06-2016 12:25 PM by compsystems.)
Post: #1
|
|||
|
|||
problems when paste text // (commentary) to the entry line
double symbols "//" to convert division (BUG) when they pasted on the input line
to check copy the following code and paste it on the simulator (BAR MENU, EDIT PASTE) Code: EXPORT PRG1 () |
|||
06-06-2016, 06:31 AM
Post: #2
|
|||
|
|||
RE: problems when copying text (//) to the simulator
Hello,
I am not seeing an issue here. Can you please be more specific as to what is happening on your side? Regards, Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
06-06-2016, 12:17 PM
(This post was last modified: 06-06-2016 12:26 PM by compsystems.)
Post: #3
|
|||
|
|||
RE:
please follow the following steps (real o simulator calculator)
1: Create a new program with a comment Code: EXPORT PRG2 () then [Shift] [View] (copy menu) then [All], [copy] then [Esc] [Esc] then [Shift] [Menu] (paste) if the hpprime clipboard it contains double slash // (comment) the hpprime assumes it as double division, be interpreted as a comment, otherwise the copy function does not work |
|||
06-06-2016, 12:53 PM
Post: #4
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
(06-06-2016 06:31 AM)cyrille de brébisson Wrote: Hello, I don't know what the OP gets but when I do it, the emulator asks if I want to create a new variable. I answer OK, then get a syntax error. Tom L Tom L Cui bono? |
|||
06-06-2016, 01:59 PM
Post: #5
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
I have tested this a few different times:
Code:
Using [Shift][Copy] and [Begin] EXPORT PRG1 () BEGIN // Hello END; [End][Copy] Then create a "New" program, erasing the new structure, followed by: [Shift][Paste][Check] and "No errors in the program" results. I can't confirm this reported problem, either. -Dale- |
|||
06-06-2016, 02:05 PM
Post: #6
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
I think I see what you mean. You are copying something containing "//" and pasting it to the Home or CAS command line. So "1//2" gets parsed as nested stacked fractions in Textbook mode. In Algebraic mode, you get 1//2 which generates a syntax error.
RPN mode actually does seem to treat // as a comment with "1 2 3 // 4 5" parsing the same as "1 2 3". This was also the behavior on the 50g (@ was the comment char). Just curious, were you hoping the comments would show as comments? or just get ignored? |
|||
06-06-2016, 02:14 PM
(This post was last modified: 06-06-2016 09:26 PM by compsystems.)
Post: #7
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
BIUG, ON ENTRY LINE, PLEASE SEE THE FOLLOWING CAPTURE
|
|||
06-06-2016, 05:04 PM
Post: #8
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
Copying a program text (containing //) and pasting this copy to a note works fine.
I'm curious: Why you are trying to copy a comment to the entry line? |
|||
06-06-2016, 05:11 PM
Post: #9
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
(06-06-2016 05:04 PM)Thomas_Sch Wrote: Copying a program text (containing //) and pasting this copy to a note works fine. Probably to create a program object directly which is not supported... TW Although I work for HP, the views and opinions I post here are my own. |
|||
06-06-2016, 09:53 PM
(This post was last modified: 06-06-2016 10:19 PM by compsystems.)
Post: #10
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
(06-06-2016 05:04 PM)Thomas_Sch Wrote: I'm curious: Why you are trying to copy a comment to the entry line?on the ENTRY line also you can create CAS programs ______________________________________________ f1(x,y,z):=BEGIN local, v1,v2,v3; return x+y+z; END; [enter] ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ then you can edit the program [Shift]+[Tools](Mem) then go to "CAS VARS" ITEM select f1 [EDIT] [EDIT] the edition appears in a new entry line, should be on full display for easy coding, note that if you paste // the interpreted as a double division and not as a comment also found another problem , the comments disappear when edited and loss of information I like to comment on my programs, other absolutely not Code: // version 0.1 Jun 5 2016 by COMPSYSTEMS Attached image view, comments disappear in this "windows", impossible uncomment, comments serve to not execute code while the code is created |
|||
06-07-2016, 05:06 AM
Post: #11
|
|||
|
|||
RE: problems when paste text // (commentary) to the entry line
Hello,
OK, I think that I understand what you are trying to do now... And yes, you are correct, this is not supported by Prime. Comments are for programs, in programs, but can not be used in the command line. Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)