HP Forums
Old programs do not run - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Old programs do not run (/thread-22622.html)



Old programs do not run - BuSchu - 11-01-2024 01:17 PM

After a long time, I wanted to start my few programs again. But none of them can still run. When I look at the program text and select "check", I only get the error message "Error: Syntaxerror". And that with every program. Then when I press ESC twice, I always get the message that there is a syntax error on line 6.
Here is my simplest test program:

EXPORT Testinput()
BEGIN
LOCAL name;

INPUT ({{name, [-1]}}, "Name", "Please type in a name");
PRINT("Hello " + name);
END;

Why am I getting a syntax error with this tiny program now?

Thank you for your help!


RE: Old programs do not run - Arno K - 11-01-2024 04:17 PM

Hello,
I opened a new program on my emulator, emptied it and copied your text in. Check: No errors,
program runs as expected. Software is: 2.1.14730
Arno


RE: Old programs do not run - BuSchu - 11-01-2024 06:46 PM

On both Primes the same, both with actual firmware: The program does not run.


RE: Old programs do not run - Dougggg - 11-01-2024 08:12 PM

do you have the latest firmware 2.2 9/1/24
on my G2 with the latest firmware
I copied and pasted the program and it seems to works ok no error


RE: Old programs do not run - BuSchu - 11-01-2024 08:30 PM

(11-01-2024 08:12 PM)Dougggg Wrote:  do you have the latest firmware 2.2 9/1/24
on my G2 with the latest firmware
I copied and pasted the program and it seems to works ok no error

As I wrote: actual firmware. And actual means latest, of course. All my old programs report a syntax error in line 6. Could it be a configuration problem?

Now I saw: The following short program shows a syntax error in line 1:

EXPORT Mopmt (L, R, M)
BEGIN
LOCAL K := R / 1200;

K := L * K / (1 - (1 + K)^ -M);
RETURN "Payment = " + K;
END;


RE: Old programs do not run - BuSchu - 11-01-2024 08:57 PM

Now I cleared memory and keyed in the program mompt and it works.


RE: Old programs do not run - BuSchu - 11-01-2024 08:59 PM

After restoring the backup before the memory reset the error is there again.


RE: Old programs do not run - Raymond Del Tondo - 11-01-2024 09:34 PM

Did you consider inserting something like this:
Code:
#pragma mode( separator(.,;) integer(h32) )
as your first source text line?
The #pragma line ensures that your preferred settings are used when compiling the text into a program.
More about the #pragma directive can be found here in the hpmuseum forum.


RE: Old programs do not run - BuSchu - 11-01-2024 10:12 PM

(11-01-2024 09:34 PM)Raymond Del Tondo Wrote:  Did you consider inserting something like this:
Code:
#pragma mode( separator(.,;) integer(h32) )
as your first source text line?
The #pragma line ensures that your preferred settings are used when compiling the text into a program.
More about the #pragma directive can be found here in the hpmuseum forum.

I think, that's it. I configured , as the separator as common in Germany. Thanks!


RE: Old programs do not run - RPNerd - 11-02-2024 08:25 AM

(11-01-2024 08:30 PM)BuSchu Wrote:  As I wrote: actual firmware.

To remove some confusion here, I think BuSchu means "up-to-date" firmware, which is "actuel" in French. One of the many false friends between the two languages.


RE: Old programs do not run - BuSchu - 11-02-2024 09:27 AM

(11-02-2024 08:25 AM)RPNerd Wrote:  
(11-01-2024 08:30 PM)BuSchu Wrote:  As I wrote: actual firmware.

To remove some confusion here, I think BuSchu means "up-to-date" firmware, which is "actuel" in French. One of the many false friends between the two languages.

Thanks. I didn't know that until now!