🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Typy generyczne

#345520
From: Roman Tyczka
Date: Thu, 05 Jan 2017 14:27
19 lines
1281 bytes
On Thu, 5 Jan 2017 06:00:13 -0800 (PST), konsul675@gmail.com wrote:

> for i := 0 to main.listaDoc.Count-1 do
>     begin
> 
> 
>       result:=result+listaDoc.items[i];
>     end;
> 
> ewentualnie jak to zrobić?

Tak jak podał Ci Adam.
Gdyż Dictionary nie ma indeksu, kolejność jest przypadkowa (konkretnie
zależy od funkcji haszującej). Jeśli zależy Ci na kolejności to użyj
dictionary springowego i Ordered z customowym comparerem.

-- 
pozdrawiam
Roman Tyczka
Technical Details
Message-ID: <1lfh2gxujo1sr.dlg@tyczka.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <f5466b3c-e4cf-4ccb-bc13-4cd0bb2064b1@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Roman Tyczka <noemail@because.no>
Newsgroups: pl.comp.lang.delphi
Subject: Re: Typy generyczne
Date: Thu, 5 Jan 2017 15:27:35 +0100
Organization: ATMAN - ATM S.A.
Lines: 19
Sender: romek@tyczka.no.found
Message-ID: <1lfh2gxujo1sr.dlg@tyczka.com>
References: <f5466b3c-e4cf-4ccb-bc13-4cd0bb2064b1@googlegroups.com>
NNTP-Posting-Host: 94.75.90.137
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1483626453 32506 94.75.90.137 (5 Jan 2017 14:27:33 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 5 Jan 2017 14:27:33 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.84
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit