realbasic-nug.de
[Top] [All Lists]

Re: zu langsamer Code

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: Re: zu langsamer Code
From: Stefan Mettenbrink <S dot Metti at gmx dot de>
Date: Wed, 19 Oct 2005 22:25:21 +0200
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
References: <3212595800 dot 234111578032 at [192 dot 168 dot 1 dot 10]> <75808B5C-0191-493B-BF5C-DD6D83E1202C at t-online dot de> <AD900E1E-1AA7-4BF7-8A0C-9867CB93742B at sailer-online dot de>
Claudius Sailer wrote:

n=ListBox1.ListCount-1
for i=0 to n
if ListBox1.Selected(i)=true then
t=t+trim(ListBox1.Cell(i,SpalteINr))+","
end if
next
EditField2.Text=t


vielleicht bringt das ja auch noch was

if ListBox1.Selected(i)=true then t=t+trim(ListBox1.Cell(i,SpalteINr)) +","

Bei 1977 Tabellenzeilen brachte das bei je drei Druchläufen 10 Ticks weniger. Bei einer Gesamtdauer von 20 Sekunden ist das vernachlässigbar.

MfG, Metti.

<Prev in Thread] Current Thread [Next in Thread>