PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Shawn Anderson on August 10, 2012, 02:43:07 PM

Title: sqlTools 3 source line too long
Post by: Shawn Anderson on August 10, 2012, 02:43:07 PM
I'm making a new FF 3.51 project using SqlToolsPro v3.

I have one form and included the ST modules.
When I compile, I get the error "source line too long".

I don't see any extraordinarily long lines. Is that error correct?
thanks
Title: Re: sqlTools 3 source line too long
Post by: Eddy Van Esch on August 10, 2012, 04:47:14 PM
Is the line number indicated in the error message? And if so, could you show us the code on these line(s)?
I had it once or twice that there were hidden control characters in the source code (often by copy-paste'ing from other sources) that made the compiler 'think' that the source code was too long.
Copying that line into Notepad and cleaning up the code (or worst-case, typing it over all together) and putting it back often made the error go away.
Title: Re: sqlTools 3 source line too long
Post by: Shawn Anderson on August 10, 2012, 06:56:46 PM
Here is a screen shot of what I see. The file is the standard SQLT3.INC file that comes with sqlTools.

(https://www.planetsquires.com/protect/forum/proxy.php?request=http%3A%2F%2Fwww.nbson.com%2Ftest%2FpbImg%2Flong.png&hash=401c3a4a02a9b70a7b55864ddaf40a78669a5bfb)
Title: Re: sqlTools 3 source line too long
Post by: Shawn Anderson on August 10, 2012, 07:00:37 PM
Also, I use this INC file in many programs. I don't know why it's too long here.
Title: Re: sqlTools 3 source line too long
Post by: Peter House on August 16, 2012, 12:38:32 PM
From memory - I had the same problem and found two lines where the comments made the line too long for the compiler.  I simply inserted a CR to move the comments to the next line and compiles were then successful.

Seems like this was also a problem with SQLTools 2.

I have no explanation why this would not happen to all users . . .
Title: Re: sqlTools 3 source line too long
Post by: Shawn Anderson on September 06, 2012, 03:06:13 PM
yep that was it. I didn't have any lines over 256 chars long but some close (around 245). I shorted them and it worked.
thanks