Page 1 of 1

Error in the structure window but app still runs.

Posted: Mon 24 Aug 2009 23:52
by wam067
CodeGearâ„¢ RAD Studio 2007 (Version 11.0.2902.10471) shows:
Errors:
'TOraQuery' does not contain a member named 'FieldByName' at line ###
in the structure window, yet the application compiles and runs. I guess this is an error that is apparently not really an error but just a warning. I can get the message to go away by typecasting the TOraQuery as a Tquery, but it seems odd that I would need to do this. I'm sure I'm doing something wrong but after checking the FAQ I was not able to find anthing that helped. Also have the same problem with 'Close' , 'RecordCount' and others. Can someone tell me what I'm doing wrong?

Thanks,
WAM.

Error in the Structure window: Resolved (I think)

Posted: Tue 25 Aug 2009 15:08
by wam067
As Rosanna Rosanna Danna often said; "Nevermind." This problem seems to have resolved itself somehow and the errors are no longer displaying in the structure window. Odd, but at least it isn't freaking me out anymore. It's like inheritance would work in the compiler but not at design time in interactive mode. Work's now though. Weird. Maybe our companys draconian viruscan policies could have locked up the file it was needing and today it has access. Only a guess.
WAM.

Posted: Wed 26 Aug 2009 07:46
by Plash
You can aviod such problems if you disable Error Insight:
- open Tools | Options in the IDE menu;
- select Editor Options | Code Insight;
- uncheck Error Insight.