Good list indeed!  Here's my input

Don't put a computed expression in a the head statement of a
for-next loop.


count = getGetFileCount
for i = 0 to count
next


If you're lazy and you don't care about order, you could save a dim with
this syntax, you get the same time saving since the filecount is called only
once.

for i = getFileCount DownTo 0
next


When concatenating a lot of strings use a string array and a join
statement instead of the "+" operator.

dim s, s1 as string
dim sa() as string
for i = 0 to 10000
sa.append(s1)
next
s = join(sa, "")


If you know the size in advance, you should dim the array to that size
instead of appending, you'll get even more speed.

dim s, s1 as string
dim sa(10001) as string
for i = 0 to 10000
sa(i) = s1
next
s = join(sa, "")

Math
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to