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