05-07-2022, 04:12 PM
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
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