loco_ola
03-09-2005, 01:34 PM
I have an array like so which i have converted from a vbArray:
arrayDrinks[0][0] = "11"
arrayDrinks[0][1] = "15"
arrayDrinks[1][0] = "SOme wine|some other wine|more red|extra red"
arrayDrinks[1][1] = "Stella|Kronenburg"
i basically want to able to reference the row in the array by id in arrayDrinks[0][i]
instead of writing arrayDrinks[0][0] 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
arrayDrinks[0][0] = "11"
arrayDrinks[0][1] = "15"
arrayDrinks[1][0] = "SOme wine|some other wine|more red|extra red"
arrayDrinks[1][1] = "Stella|Kronenburg"
i basically want to able to reference the row in the array by id in arrayDrinks[0][i]
instead of writing arrayDrinks[0][0] 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