Hi,
An array may not be the best way to store the data if you have this
requirement.
You have two options:
1- Change the store method, using a Queue, an ArrayList or maybe a Stack (
if it's suitable for you )
2- If for some reason you need to use an array what you can do is use a var
to indicate the first index not used, in this way instead of using
array[0] you use array[FirstIndex] and update FirstIndex according.
You can do this a class too.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"ORC" <or*@sol.dk> wrote in message
news:uR**************@tk2msftngp13.phx.gbl...
I have a large array where the first index must be removed, but how is the
best way to do that when the application must be optimized to speed?
Thanks
Ole