Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: find in Array?

  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Thanked 0 Times in 0 Posts

    Question find in Array?

    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

  • #2
    Kor is offline
    Red Devil Mod Kor's Avatar
    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?
    Offshore programming


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts