Mega Code Archive

 
Categories / Delphi / Examples
 

Line too long [more than 1023 characters]

Question: When I try to compile, I suddenly get this error message: Line too long (more than 1023 characters). - but I cannot find any line to have more than 120 characters. Answer: Most likely you imported your source file from a CVS on a Unix machine, or you used an editor, that saves Unix style line separators. This will confuse Delphi. Homesite is a tool that will do this to you, I found. Your line separators of #10s must be replaced by #13#10 as it is standard in DOS/ Windows. In my case, I used Homesite to convert to Windows style documents.