Close

Search

I have the following code
<cfscript>
data = [‘2342bas’, ‘asqwerewq’, ‘12314’, 12421, 1.1];
newdata = arrayNew[‘Numeric’](1);
for (item in data) {
newdata.append(val(item));
}
writedump(newdata);
newdata = [];
for (item in data) {
newdata.append(val(item));
}
writedump(newdata);
</cfscript>
This result in
Not sure this is wrong, but it is interesting
I have the following code
<cfscript>
data = [‘2342bas’, ‘asqwerewq’, ‘12314’, 12421, 1.1];
newdata = arrayNew[‘Numeric’](1);
for (item in data) {
newdata.append(val(item));
}
writedump(newdata);
newdata = [];
for (item in data) {
newdata.append(val(item));
}
writedump(newdata);
</cfscript>
This result in
Not sure this is wrong, but it is interesting
Been a ColdFusion Developer since 1996
All Comments
Sort by:
Most Recent

- Most Recent
- Most Relevant
You might also like
Other topics
© 2025 Adobe. All rights reserved.
Privacy | Terms of Use | Cookies | Contact Us | Do not sell or share my personal information