[DUG] D2006 Compiler

John Bird johnkbird at paradise.net.nz
Wed Dec 21 09:18:45 NZDT 2005


There is a code Structure window top left on the screen that looks like it
continuously compiles the code and shows syntax errors, also wavy red lines
appear under the code in the code window.....I have some blocks of code it
doesn't like and complains about, only thing there is nothing wrong with the
code, and the main compiler (Run/F9) produces no errors and a nice .DCU and
the running program.

Is there a split personality going on here?  Doesn't bother me, but I am
curious....

2 examples:

Example 1:
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Grids, StdCtrls,etc;

Structure window highlights the Graphics unit and says "cannot resolve unit
name" but if right click on it and select open source file at cursor it
opens fine....

Example 2:

begin
  with strgrdMaCC do
  begin
    celltxt := cells[Acol,Arow];
    canvas.brush.color:=clWhite;
    minuspos:=0;
    if acol = 9 then

Structure window says "undeclared identifier brush at line....".  Is it
trying to resolve it as part of the with strgrdMaCC? (it isn't)

John




More information about the Delphi mailing list