« Return to Thread: Find structure in array

Find structure in array

by Carl Vanderpal :: Rate this Message:

Reply to Author | View in Thread

Having a stumpt moment, how to I find what position in the array 'DEF' is in?

Thanks
<cfscript>

aBooks = ArrayNew(1);

stBooks[1] = StructNew();
stBooks[1].Name = "ABC";
stBooks[1].Chapters = 50;

aBooks[2] = ArrayNew(1);
stBooks[2] = StructNew();
stBooks[2].Name = "DEF";
stBooks[2].Chapters = 40;

aBooks = ArrayNew(1);
stBooks[3] = StructNew();
stBooks[3].Name = "HIJ";
stBooks[3].Chapters = 27;

aBooks[4] = ArrayNew(1);
stBooks[4] = StructNew();
stBooks[4].Name = "KLM";
stBooks[4].Chapters = 36;
</cfscript>


====================================
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