Recent

Author Topic: (Solved)No Idea what is wrong with this code.  (Read 4307 times)

rvk

  • Hero Member
  • *****
  • Posts: 6162
Re: No Idea what is wrong with this code.
« Reply #15 on: April 06, 2020, 09:57:24 am »
When I was done no errors showed up.
Ok, problem solved  ::)

If you didn't make a backup before repairing or removing the parts that gave you the error, we can't say what was wrong.

JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: No Idea what is wrong with this code.
« Reply #16 on: April 06, 2020, 09:59:11 am »
Winn I can't, sorry. The one line below is all I copied.
It was the first line and for some reason I couldn't copy the second line.
So, what was the second line?

Fatal: Syntax error, "BEGIN" expected but "end of file" found
Really strange. Was there no source-file in front of this message?

In Lazarus, if you right click the error message, can choose Copy > Copy all shown messages to clipboard.
You'll get the complete/all messages, like:
Code: [Select]
Compile Project, Target: C:\Users\Rik\AppData\Local\Temp\project1.exe: Exit code 1, Errors: 1
unit1.pas(25,0) Fatal: Syntax error, "BEGIN" expected but "end of file" found

No there was no source in front of the errors. Which was strange.
I could right click on the first error and copy but not on the second line.

"unit1.pas(25,0) Fatal: Syntax error, "BEGIN" expected but "end of file" found"
indicate the error is in unit1.pas(25,0) Line 25 is a comment. Everything is a comment in unit1.pas.
 
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

rvk

  • Hero Member
  • *****
  • Posts: 6162
Re: No Idea what is wrong with this code.
« Reply #17 on: April 06, 2020, 10:03:27 am »
"unit1.pas(25,0) Fatal: Syntax error, "BEGIN" expected but "end of file" found"
indicate the error is in unit1.pas(25,0) Line 25 is a comment. Everything is a comment in unit1.pas.
That was just an example I gave. It was not from your sourcecode.

But if you can't reproduce the error anymore there is no way for us to say what went wrong.

(Next time, backup the directory before making canges if you want an answer about it)


JLWest

  • Hero Member
  • *****
  • Posts: 1293
Re: No Idea what is wrong with this code.
« Reply #18 on: April 06, 2020, 10:04:33 am »
I should have backed up the dir. The reason why I didn't was because there wasn't that much code and  the first reply I got was works on my machine. So then I figured I needed to start over.

Thanks to all who took a look.

Hope everyone is doing OK
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

 

TinyPortal © 2005-2018