Post Reply 
Strange issue with new firmware [SOLVED]
06-07-2016, 07:31 PM (This post was last modified: 06-08-2016 06:56 AM by periappi.)
Post: #1
Strange issue with new firmware [SOLVED]
Hello,

I'm encountering a strange issue with the new firmware. Indeed, whereas my old programs used to work on the former version, they don't anymore, and for something weird : the Prime doesn't seem to like the characters "/" and "\".

For example : in the function
RETURN("/!\ n < 30 /!\");
The debugger stops on "/" and "\".

NB : I tried to use pragma_mode, but it doesn't change anything.

Can you help me ?

Thanks,
Find all posts by this user
Quote this message in a reply
06-07-2016, 08:06 PM
Post: #2
RE: Strange issue with new firmware
hello,
/ should be used only to input the division and \n is a way to return "new line" (escaping)...
// is for a comment line in a program.
So is better don't use them in a return line.

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
06-07-2016, 08:19 PM
Post: #3
RE: Strange issue with new firmware
(06-07-2016 07:31 PM)periappi Wrote:  RETURN("/!\ n < 30 /!");
The debugger stops on "/" and "".

It is stopping on the incomplete escape character. If you are trying to print "/!\" in a string, you'll need to put \\ for each single instance of \ you want to print. Change it to be "/!\\ n < 30 /!\\" and you should be good.

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
06-08-2016, 05:00 AM
Post: #4
RE: Strange issue with new firmware
Hello,

The latest version does implement escape characters in strings:
\n, \t, \r, \", \ooo and \uxxxx.
Since \ is now an escape character, to enter \ by itself, you have to double it to enter it: ie: \\

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.
Find all posts by this user
Quote this message in a reply
06-08-2016, 06:56 AM
Post: #5
RE: Strange issue with new firmware
Thanks everybody ! It know works !
Find all posts by this user
Quote this message in a reply
Post Reply 




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