Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loop an Array of Structures

Status
Not open for further replies.

soho34

IS-IT--Management
Dec 28, 2004
102
US
Hi,

I have a session array of structures. I'd like to find the location of a value in the Structure, but ultimately, I want returned the array's row element.

I haven't done this in a while and here's what I have:

<cfloop index="i" from="1" to="#ArrayLen(session.myArray)#">
<cfset aResults = StructFind(session.myArray.custid,#custid#)>
</cfloop>

Do I need to do something differently?

Here's the error I receive:

"You have attempted to dereference a scalar variable of type class java.lang.Integer as a structure with members. "

Thanks in advance,

soho34
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top