01-16-2008 03:17 AM
01-16-2008 03:33 AM
01-16-2008 03:42 AM
user_1 wrote:
Then one more thing what is the importance of wait inside a loop?A loop without a 'wait' will perform badly than a loop with 'wait'?
01-16-2008 03:48 AM
Hi GerdW,
Thanks for the informative reply.
I have one more doubt.
We have to initialise the array with some value in the beginning.We can not predict the size of the array in the beginning.
Suppose we initialised the array with few elements and in a later step i have to deal with more elements for that array.So when i use replace function i will have to replace some elements in the index which was unused by the array.(Suppose the initial size is 5 and i am dealing with 100 elements.We can index from 0 to 4 only as there are only 5 elements in the initialised array)
Will this function work in such a situation?
Thanks once again.
01-16-2008 04:00 AM - edited 01-16-2008 04:00 AM
01-16-2008 04:13 AM
Arrays with 5 or 100 elements are very tiny and it's not even worth bothering about performance. You can safely allocate a few hundred elements and it will not hurt your memory footprint in any noticeable way. Just pick a reasonable upper limit. A typical computer has probably about 1 GB of RAM, so these 100 elements (e.g. 800bytes of DBL) occupy only a microscopic fraction of your total memory.
user_1 wrote:
Suppose we initialised the array with few elements and in a later step i have to deal with more elements for that array.So when i use replace function i will have to replace some elements in the index which was unused by the array.(Suppose the initial size is 5 and i am dealing with 100 elements.We can index from 0 to 4 only as there are only 5 elements in the initialised array)
01-16-2008 04:20 AM
01-16-2008 06:50 PM
Hi Altenbach,
Thank u for the reply.
I am not dealing with array arrayof small size.My arrays need to occupy many thousand of records.(so how do i initialise the array in such a condition?)
Just for an example i asked like Arrays with 5 or 100 .
Thanks once again...
01-17-2008 02:15 AM