views:

90

answers:

1

I've added some of the new Generics into my Delphi 2009 program.

In the Structure window of the Delphi IDE, I'm getting a bunch of errors of the form:

'TList` 1' does not contain a member named 'JumpID' at line 1031 (1031:57) 

My declarations and lines seem fine to me. And my program Builds without any errors and runs without problems.

The relevent declarations are:

uses 
  Generics.Collections;

type
  TLocJump = record
    LocID: string;
    JumpID: string;
  end;

var
  LocJumpList: TList<TLocJump>;
  CurCursorID: string;
  I: integer;

And this is line 1031 that the message is referring to:

  CurCursorID := LocJumpList[I].JumpID;

Could anyone explain what this message is, and what I can do to fix it?

+3  A: 

It's a glitch in Error Insight. Really the only thing you can do to fix it is to turn Error Insight off. Or ignore it. It's not fixed in D2010 either. Hopefully it will be in the next version...

Mason Wheeler
What are you hoping to find in the next version - a glitch or a fix? :)
Serg
Hopefully it will be [fixed] in the next version.
Mason Wheeler