🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #334813

E2032 For loop control variable must have ordinal type

#334813
From: jh
Date: Mon, 16 Jan 2012 15:14
35 lines
1502 bytes
Podejrzewam, że to moja nieznajomość typów generycznych się kłania... :(

unit uLists;

interface

uses
   Classes, SysUtils, RTTI, System.Generics.Collections;

type

   TPhraseList<Integer, T> = class(TObjectDictionary<Integer, T>)
   private
     procedure DoParsePacketList(AStrings: TStringList);
   end;

implementation

procedure TPhraseList<Integer, T>.DoParsePacketList(AStrings: TStringList);
var
   I: Integer;
begin
   if Assigned(AStrings) then
   begin
     Self.Clear;
     for I := 0 to Pred(AStrings.Count) do //linia 212
   end;
end;

[DCC Error] uLists.pas(212): E2032 For loop control variable must have 
ordinal type

Podpowie ktoś, skąd taki błąd?

jh
Technical Details
Message-ID: <jf1eso$r2g$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: jh <no-email@sorry.com>
Newsgroups: pl.comp.lang.delphi
Subject: E2032 For loop control variable must have ordinal type
Date: Mon, 16 Jan 2012 16:14:32 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 35
Message-ID: <jf1eso$r2g$1@inews.gazeta.pl>
NNTP-Posting-Host: rk-193-19-124-170.kielce.net.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1326726874 27728 193.19.124.170 (16 Jan 2012 15:14:34 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 16 Jan 2012 15:14:34 +0000 (UTC)
X-User: jh0909nowe
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit