I had this error message when ran a program I was writing yesterday.
Cause was a WRITELN being over 255 characters long.
The 3.1d compiler catches a WRITE over 255 characters, but not WRITELN.
Just a FYI for reference.
Printable View
I had this error message when ran a program I was writing yesterday.
Cause was a WRITELN being over 255 characters long.
The 3.1d compiler catches a WRITE over 255 characters, but not WRITELN.
Just a FYI for reference.
Thank you very much!
[quote][COLOR=#333333]Just a FYI for reference[/COLOR][/quote]
Knew it would come in handy one day .... [COLOR=#454545][FONT=Helvetica]12 years, 1 day, 19 hours, 6 minutes[/FONT][/COLOR]
I have just had this error. In my case I found, by looking at the bottom of the .prn file, that the compiler had not completed all the file. ie: the compiler stopped part way though the source file but reported no error.
I had added an additional procedure to the bottom of the program and the compiler was stopping just before that procedure. I can only surmise that there must have been an EOL in the code. I deleted the procedure and the few lines above it, typed them in again and all was well.
Ian
[QUOTE=Ianv;379227]I have just had this error. In my case I found, by looking at the bottom of the .prn file, that the compiler had not completed all the file. ie: the compiler stopped part way though the source file but reported no error.
I had added an additional procedure to the bottom of the program and the compiler was stopping just before that procedure. I can only surmise that there must have been an EOL in the code. I deleted the procedure and the few lines above it, typed them in again and all was well.
Ian[/QUOTE]
I found an EOL in my 'big program' charmode code after I had inadvertently saved it from another text editor. It manifested itself the same way too. A PITA to track down.
In the 90’s I once deleted the /* by accident
It compiled very fast but did nothing when run [emoji23]
In desperation checked the prn and found all my source code there …
Just found another one that ruined my weekend! (As in 'I was dreading coming in today and explaining that the two-line change to our character mode point of sale wasn't implemented because it wouldn't compile')
Search and replace, the weak spot of the studio editor. As I have to compile the charmode beast under win32, I use a copy of DF19 and 19.1 to edit, then a script under Notepad++ to compile. The compile produced a PRN about 40 lines long, stopping somewhere in a package.
Finally after an hour this morning tracked it down to '#endCOMMAND" instead of "#ENDCOMMAND".
I had spent an idle hour last week doing search and replace to get consistent capitalisation so that source compares threw up fewer differences. I'd had to repeat end>End a few times as even 'whole word only' consistently converted 'Extended' to 'ExtEnded' so eventually settled on lowercasing it and wasting hours in consequence. :mad:
Wouldn't checking "Preserve Case" prevent that? Or were you trying to change the case on "end"?
[QUOTE=Garret Mott;382079]Wouldn't checking "Preserve Case" prevent that? Or were you trying to change the case on "end"?[/QUOTE]
Hence end>End ... :p
Well then nevermind... ;)