Status/Resolution/Reason: Closed/Won't Fix/Workaround
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 09/18/2014
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Minor / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 2
Repro:
{code}
for (element in "tahi,rua,toru,wha"){
writeOutput("#element#<br>");
}
{code}
That's fine.
Now, what if I have this:
{code}
for (element in "tahi;rua;toru;wha"){ // the delimiter is now a semi-colon
writeOutput("#element#<br>");
}
{code}
The docs for CFScript are shockingly bad, so it's either not documented at all, or I just can't find 'em.
Anyway, any list operation needs to support the specification of alternative delimiters. I suggest this:
{code}
for (element in "tahi;rua;toru;wha"; ";"){
writeOutput("#element#<br>");
}
{code}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3827490
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: