954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Borland compiler error

In Borland C++ Builder 6, I used forms. I created a button and clicked on it. It went to the editor. I typed "form1. " waiting for autocomplete to work. But I got "error in source code". The source code was generated by the BDE. Why doesnt it work. I spent 2 hours downloading the file from borland site. :mad:

chound
Junior Poster
145 posts since Aug 2004
Reputation Points: 15
Solved Threads: 1
 

comment out the line, save and compile, uncomment.
Backspace over the period and retype, see if that clears it.

Sometimes it doesn't see that you're at work on the line still and (of course, as it's incomplete) reports a compiler error on it which prevents codeinsight from launching.
The procedure outlined above usually does the trick.

Of course it is possible that you actually have a typo in your own code, are you certain the form is indeed called form1 (lowercase f) for example?

P.S. there's a newer version available here: http://www.borland.com/products/downloads/download_cbuilderx.html C+ Builder 6 is an old product (plus the personal version of CBuilderX is I believe free of charge instead of a trial).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
P.S. there's a newer version available here: http://www.borland.com/products/downloads/download_cbuilderx.html C+ Builder 6 is an old product (plus the personal version of CBuilderX is I believe free of charge instead of a trial).


Now they tell me!! :twisted:

chound
Junior Poster
145 posts since Aug 2004
Reputation Points: 15
Solved Threads: 1
 

Do like this: Form1->button1....or whatever .Use "->" instead of "."

spiriad
Newbie Poster
16 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You