-
-
Save cfvonner/67eba7c75f77e1982c1db7a7efc9ef83 to your computer and use it in GitHub Desktop.
No ColdFusion Len Member Function on Java numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
myNumber = 10; | |
writeOutput( myNumber.len() ); | |
//This will throw a "The len method was not found" | |
myJavaNumber = JavaCast( "int", myNumber ); | |
writeOutput( myJavaNumber.len() ); | |
//This will throw a "The len method was not found" | |
myQueryNumber = queryNew( "id", "integer", {id: 16} ).id; | |
writeDump( myQueryNumber.len() ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment