tracker issue : CF-3039627

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 79374:(Watson Migration Closure)Can you please make so that a for in loop works for arrays?You have the functionality with <cfloop array="#foo#" index="bar"></cfloop>You should also be able to do:for(arrayFoo in bar){ writeoutput

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Mark Mandel / Mark Mandel (mark.mandel)

Created: 08/11/2009

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 6

Problem:

Can you please make so that a for in loop works for arrays?You have the functionality with <cfloop array="#foo#" index="bar"></cfloop>You should also be able to do:for(arrayFoo  in bar){   writeoutput(bar);}Like you can for structures.
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3039627

External Customer Info:
External Company:  
External Customer Name: Mark Mandel
External Customer Email: 3EA9517D445A9E8999201549
External Test Config: 08/11/2009

Attachments:

Comments:

This is almost a most have in the scripting lamguage
Vote by External U.
23105 | November 10, 2011 07:01:45 PM GMT
This bug has been voted..
Vote by External U.
23106 | November 10, 2011 07:01:46 PM GMT
This bug has been voted..
Vote by External U.
23107 | November 10, 2011 07:01:47 PM GMT
This bug has been voted..
Vote by External U.
23108 | November 10, 2011 07:01:48 PM GMT
a definite must have pls! the old school way is killing my fingers...
Vote by External U.
23109 | November 10, 2011 07:01:50 PM GMT
This bug has been voted..
Vote by External U.
23110 | November 10, 2011 07:01:51 PM GMT