use eq instead of is... much quicker.

Cheers,

Chris Dawes
Web Systems Administrator 
Information Technology

Tel: (02) 9030 1163
Fax: (02) 9030 1163
Mob: 0433 994 420

Level 3, Tower 1 Darling Park
201 Sussex Street
Sydney, NSW 2000

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carl Vanderpal
Sent: Thursday, 29 December 2005 6:32 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Find structure in array



On 12/29/05, Taco Fleur - Pacific Fox <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
FireFly Internet Phone: 80011777 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] ---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ Aussie Macromedia Developers: http://lists.daemon.com.au/
----------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
----------------------------------------------------

Reply via email to