Post

 Resources 

Console


RE: Array callback? Corre (3 replies, 0 views) (2000-Sep-30)
-
There are several ways you could speed up such a search. One of the fastest would be by implementing a hash table (you should be able to find info about this on the net) and they are not hard to do. Another way would be to make use of the Collection class, which uses fast lookup techniques (I think it actually uses a hash table). Dim PlayerIds As Collection Dim PlayerArray() as Whatever Function FindPlayer(Id as String) FindPlayer=PlayerIds(id) End Function When adding a player to the PlayerArray, you should also do this PlayerIds.Add Index,Id where index is the index you are adding to the playerarray, and Id is that players id /Corre, MiCo Games http://www.micogames.com


-
Up One Level | Back to Forum

RE: Array callback? Almar Joling (2 replies) (2000-Oct-1)
RE: Array callback? Corre (1 reply) (2000-Oct-1)
Okay, thanks! *NT* Almar Joling (0 replies) (2000-Oct-1)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 97 visitors within the last 20 minutes
RSS News Feed