|
Post by sirbop on May 20, 2022 20:44:42 GMT
Hello
I'm using a jbasic program to modify another jbasic program.
When I try and execute the modified program I get a
"BASIC Compile Halted: Syntax error" on the first
line of the modified code even when the line
contains something as simple as:
PrinterFont$="courier new 15 bold"
I've tried creating the new file with and without the .bas file type.
I am using J Basic release 2.0
with OS Name Microsoft Windows 11 Home
Version 10.0.22000 Build 22000
Any help will be greatly appreciated.
Thanks
Ted
|
|
|
Post by tenochtitlanuk on May 21, 2022 9:15:00 GMT
Difficult to generalise since you don't show us the JB code of the altering file nor its target. But fontnames have to have spaces replaced by undercores= try-
PrinterFont$="courier_new 15 bold"
|
|
|
Post by sirbop on May 21, 2022 13:31:08 GMT
Found the problem. I was using INPUT when I should have used LINE INPUT.
Thanks
|
|