Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Delphi 7 difficulties with comments in code

Posted on 2003-11-07
5
999 Views
Last Modified: 2007-12-19
L.S,

I try to convert existing Delphi 4 code into Delphi 7 (studio architect version) and I experience very strange behaviour of D7 with respect to the use of comments within the code.

It looks like that D7 does not accept the comments (generates an error "line
too long (more than 1023 characters)". It appears that at some location all comments need to be removed. Not in all cases, strange enough.

The D4 programs to be recompiled contain a lot of table handling code using the BDE, and I have a feeling that this has to do with the error.

Does anybody know why this is and what to do about it (except for stripping all valualbe information from the code) ?


Thanks in advance,
JGMS
0
Comment
Question by:JGMS
5 Comments
 
LVL 12

Accepted Solution

by:
andrewjb earned 25 total points
ID: 9703455
Might be worth checking to see whether the lines are correctly terminated i.e. with <CR><LF> and not just a <CR> or just a <LF>.

That's confused the compiler in the past - maybe it doesn't know comments span multiple lines...

Copy/Paste from the PVCS source control tool has done this to me before now..
0
 

Author Comment

by:JGMS
ID: 9704166
The code complies normally in D4. A number of comment containing code compile normally, so I do not expect CR/LF causes.
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 9705735
Open it in another text editor to ss if the line termination is correct before opening it in Delphi7.
0
 
LVL 1

Expert Comment

by:Chopinke
ID: 9705781
IF you have a cr only or lf only problem, then open your text in WordPad (turn off WordWrap) and save. Wordpad will automatically convert all line ends to cl/lf.
0
 

Author Comment

by:JGMS
ID: 9709784
L.S.

The CR/LF point indeed appeared to be the problem, or perhaps part of the problem.

After opening and saving the code in a text editor, it passed the syntax check without errors but generated a fatal error during compilation: "Internal error L1333". No clue on the internet about this, but fortunately the problem dissapeared after running a number of updates from the Borland site.

Thanks, JGMS
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 95
QRReport  TQrmemo vertical stretching 1 53
How to debug For loops? 3 56
Adoquery sql  left join does not work 25 99
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question