portal entry

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

Member Functions introduced in ColdFusion (2018 release)

| View in Portal
July 12, 2018 09:01:05 AM GMT
<p>In the 2018 release of ColdFusion, we have introduced new Built-In Functions(BIF) to manipulate different objects using a single line invocation. Query Functions QueryDeleteRow( Object query, int rowNum ) QueryDeleteColumn( Object query, String columnName) Arrays Functions ArrayFirst(List list) ArrayLast(List list) XML Functions XmlIsEmpty( XmlNodeList xmlNodeList ) XmlCount( XmlNodeList xml ) XmlAppend( XmlNodeList xml1, XmlNodeList xml2 ) XmlUpdate( XmlNodeList xml, String key, Object value ) XmlKeyList( XmlNodeList xml ) XmlKeyArray( XmlNodeList xml ) Async Functions RunAsync() RunAsync(UDFMethod method) RunAsync(UDFMethod method, long […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/07/member-functions-coldfusion-2018/">Member Functions introduced in ColdFusion (2018 release)</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Adobe ColdFusion, Adobe ColdFusion 2018, Blog, Uncategorized, BIF, CFML, chaining, coldfusion 2018, functions, member function


Hi Ashudeep, Very nice post! Couple comments: 1) format() is, thankfully, just a member function (not BIF) 2) precisionEvaluate() is also a numeric member function (useful for converting to java.math.BigDecimal) Ex: myVar1 = 10; myVar2 = myVar1.precisionEvaluate();//converts to java.math.BigDecimal (good!) writeOutput(myVar1.getClass().getName() & ' ' & myVar2.getClass().getName()); Outputs "java.lang.Integer java.math.BigDecimal" Sweet!! Thanks Adobe!! ..now for CF to internally use BigDecimal to reduce floating point math issues/tickets =) Thanks!, -Aaron
Comment by Aaron Neff
1204 | July 31, 2018 07:48:12 AM GMT
Thanks Aaron for the feedback, i have corrected it in the blog post.
Comment by ashuspeed
1207 | August 02, 2018 09:06:57 AM GMT
Two function names contain character x followed by an opening bracket. This is presented as a smiley on this page X(
Comment by Bernhard Döbler
1279 | October 10, 2018 10:19:44 AM GMT