🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: E2032 For loop control variable must have ordinal type

#334815
From: Piotr Rezmer
Date: Mon, 16 Jan 2012 15:43
27 lines
1403 bytes
jh pisze:
> var
>    I: Integer;
> begin
>    if Assigned(AStrings) then
>    begin
>      Self.Clear;
>      for I := 0 to Pred(AStrings.Count) do //linia 212
>    end;

Zrób jak poniżej i nie dręcz Abrakadabry :)


var
  packetName :string;
begin
     for packetName in AStrings do
     begin
	//tutaj przetwarzanie
     end;
end;


-- 
pozdrawiam
Piotr
XLR250&bmw_f650_dakar
Technical Details
Message-ID: <jf1gja$2u5$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <jf1eso$r2g$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Piotr Rezmer <piotr.rezmer_bez_spamu@ens.net.pl>
Newsgroups: pl.comp.lang.delphi
Subject: Re: E2032 For loop control variable must have ordinal type
Date: Mon, 16 Jan 2012 16:43:14 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 27
Message-ID: <jf1gja$2u5$1@inews.gazeta.pl>
References: <jf1eso$r2g$1@inews.gazeta.pl>
NNTP-Posting-Host: 77-252-224-134.ip.netia.com.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1326728618 3013 77.252.224.134 (16 Jan 2012 15:43:38 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 16 Jan 2012 15:43:38 +0000 (UTC)
X-User: prezmer
X-Antivirus: avast! (VPS 120116-0, 2012-01-16), Outbound message
In-Reply-To: <jf1eso$r2g$1@inews.gazeta.pl>
X-Antivirus-Status: Clean
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.1.16) Gecko/20101125 Thunderbird/3.0.11
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit