Post Reply 
Old programs do not run
11-01-2024, 01:17 PM
Post: #1
Old programs do not run
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!

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-01-2024, 04:17 PM
Post: #2
RE: Old programs do not run
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
Find all posts by this user
Quote this message in a reply
11-01-2024, 06:46 PM
Post: #3
RE: Old programs do not run
On both Primes the same, both with actual firmware: The program does not run.

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-01-2024, 08:12 PM
Post: #4
RE: Old programs do not run
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
Find all posts by this user
Quote this message in a reply
11-01-2024, 08:30 PM (This post was last modified: 11-01-2024 08:35 PM by BuSchu.)
Post: #5
RE: Old programs do not run
(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;

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-01-2024, 08:57 PM
Post: #6
RE: Old programs do not run
Now I cleared memory and keyed in the program mompt and it works.

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-01-2024, 08:59 PM
Post: #7
RE: Old programs do not run
After restoring the backup before the memory reset the error is there again.

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-01-2024, 09:34 PM
Post: #8
RE: Old programs do not run
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.

-- Ray
Find all posts by this user
Quote this message in a reply
11-01-2024, 10:12 PM
Post: #9
RE: Old programs do not run
(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!

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
11-02-2024, 08:25 AM
Post: #10
RE: Old programs do not run
(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.

Current daily drivers: HP-41CL, HP-15C, HP-16C
Find all posts by this user
Quote this message in a reply
11-02-2024, 09:27 AM
Post: #11
RE: Old programs do not run
(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!

HP-15C, HP-15C LE, HP-15C CE, HP-16C, HP-35S, HP Prime G1, HP Prime G2
Find all posts by this user
Quote this message in a reply
Post Reply 




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