Post Reply 
Strange PPL error
05-07-2022, 04:12 PM
Post: #1
Strange PPL error
Hello all,

I am trying to get used to the HP Prime and wrote a very little program in PPL and I am getting a syntax error in line 3. This is the code:

EXPORT CAS2HOME(VALUE)
BEGIN
PRINT(REPLACE(VALUE,"x","X"));
END;

The funny part is it was working before and on my HP Prime simulator it works too, no error message. It stopped working after my HP Prime rebooted because of an error/crash.

What this code should be good for: If I am using formulas in CAS the variable x is lower case but in the HOME environment X should be upper case. This code can be used to replace all lower case x by upper case X and print the new formula. If you now use the copy function you can use paste in the HOME environment and the formula is native HOME.

I am not sure if there is a better way but this is my solution. The best way would be a special paste function from the HP Prime OS.

Hope someone has an idea what is wrong.

Thanks for your help
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Strange PPL error - Dobiray - 05-07-2022 04:12 PM
RE: Strange PPL error - Dobiray - 05-07-2022, 08:05 PM
RE: Strange PPL error - BruceH - 05-07-2022, 09:08 PM
RE: Strange PPL error - Dobiray - 05-07-2022, 09:47 PM
RE: Strange PPL error - roadrunner - 05-08-2022, 01:21 AM
RE: Strange PPL error - Thomas_Sch - 05-08-2022, 07:52 AM
RE: Strange PPL error - Dobiray - 05-08-2022, 09:26 AM
RE: Strange PPL error - Tim Wessman - 05-08-2022, 10:55 AM
RE: Strange PPL error - Dobiray - 05-08-2022, 03:38 PM



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