« Return to Thread: Find structure in array

RE: Find structure in array

by Carl Vanderpal :: Rate this Message:

Reply to Author | View in Thread



On 12/29/05, Taco Fleur - Pacific Fox <taco.fleur@...> wrote:
Loop over the array and find the position, i.e.
 
found = 0;
for ( i = 1; i LTE arrayLen( stBooks ); i = i + 1 )
{
    if ( stBooks[ i ] IS 'DEF' ) // Or use compare() if you are after a case match
    {
        found = i;
        break;
    }
}


Thanks Taco...& Ben


====================================
Postal: Po Box 3462 Dural, NSW 2158
Email: mailto:carl.vanderpal@...
FireFly Internet Phone: 80011777 --- You are currently subscribed to cfaussie as: lists@... To unsubscribe send a blank email to leave-cfaussie-23165F@... Aussie Macromedia Developers: http://lists.daemon.com.au/

 « Return to Thread: Find structure in array