ArrayClear(LoginArray[ArrayRows] )

If I remember correctly a 2d arrray is just an array of arrays so this
should work.

-----Original Message-----
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 2:50 PM
To: CF-Talk
Subject: ArrayDeleteAt for a 2d array?


How do you loop over a *2d* array and delete a single row (and all its
elements), where that row is determined by a test of the contents.  Like so:

<!---
LoginArray[1]=Username
LoginArray[2]=User ID #
--->

<cfloop 
        from="1" 
        to="#ArrayLen(LoginArray)#" 
        index="ArrayRows">
        <cfif not Compare(LoginArray[ArrayRows][2],client.UserID)>
<!--- delete array row code goes here --->
                <cfbreak>
        </cfif>
</cfloop>

I've been fighting a losing battle with this all afternoon.

-------------------------------------------
 Matt Robertson,     [EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
-------------------------------------------
 
             

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to