bjoshi
12-29-2011, 11:44 PM
Hi,
I'm trying to work with arrays for the first time. Here is the kind of code that I wish to do,
1. I need to check whther a value is present in an Array, if not, then add the value to the array, check the next value, if not present in the array, then add the value to the array....so on...
2. After every addition of an element to the array, i want a msgbox stating that "the last value of the array is now...."
3. Also, I want the array to contain only say 10 elements, so if the value is not present in the array and the number of elements in the array is 10 then the value being tested should be added to a new array. so if there are 21 values i am checking then 3 arrays would be created, 10+10+1=21.
Hopefully I've been clear in my explanation. Any help is appreciated.
Thanks and have a good day ahead.
bjoshi
I'm trying to work with arrays for the first time. Here is the kind of code that I wish to do,
1. I need to check whther a value is present in an Array, if not, then add the value to the array, check the next value, if not present in the array, then add the value to the array....so on...
2. After every addition of an element to the array, i want a msgbox stating that "the last value of the array is now...."
3. Also, I want the array to contain only say 10 elements, so if the value is not present in the array and the number of elements in the array is 10 then the value being tested should be added to a new array. so if there are 21 values i am checking then 3 arrays would be created, 10+10+1=21.
Hopefully I've been clear in my explanation. Any help is appreciated.
Thanks and have a good day ahead.
bjoshi