Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: find in Array?
03-09-2005, 01:34 PM #1
- Join Date
- Mar 2005
- Thanked 0 Times in 0 Posts
find in Array?
I have an array like so which i have converted from a vbArray:
arrayDrinks = "11"
arrayDrinks = "15"
arrayDrinks = "SOme wine|some other wine|more red|extra red"
arrayDrinks = "Stella|Kronenburg"
i basically want to able to reference the row in the array by id in arrayDrinks[i]
instead of writing arrayDrinks for id 11 i want to be able to reference it directly to id 11.
obviously i could loop through my results to find the correct id in the array, but there will be thousands of items in the array eventually and its not really very efficient.
IS this possible at all. thanks
03-09-2005, 03:56 PM #2
- Join Date
- Apr 2003
- Bucharest, ROMANIA
- Thanked 379 Times in 375 Posts
I guess your information you have bring it is not very clear, at least not for me... Which id? What do you intend to do?
To retrieve a cell in a table you may use
but you may circle also through the rows... or directly through the inner elements... it depends on.... What is your goal, after all?