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?
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...
you can use like this
CurCursorID := LocJumpList.Items[I].JumpID;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With