portal entry

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

CFFiddle for Spreadsheet, List, Struct, and Date/Time functions

| View in Portal
November 12, 2018 06:35:42 AM GMT
2 Comments
<p>In a previous blog, we’d mentioned that we have started linking code samples in docs to CFFiddle links. Building upon our previous efforts, we’ve now extended CFFiddle to the following function categories: Spreadsheet functions Struct functions List functions Date/time functions The next task is to link CFFiddle with Query and Decision functions, and also a few File functions. As always, please use CFFiddle to test the samples. If there are sample(s) that you want to be modified/corrected, share the link […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/11/cffiddle-spreadsheet-list-struct-date-time-functions/">CFFiddle for Spreadsheet, List, Struct, and Date/Time functions</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Adobe ColdFusion 2016, Adobe ColdFusion 2018, CFFiddle, CFML Reference, Documentation, Question, cffiddle, date/time functions, list functions, spreadsheet functions, struct functions

Comments:

This might be OT, but here goes. Some of these samples seem dated. On <a href="https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arraytolist.html" rel="nofollow">https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arraytolist.html</a> I feel confused. For example <code><</code><code>cfscript</code><code>></code> <code>       </code><code>// Declare an array</code> <code>       </code><code>myArray=ArrayNew(1);</code> <code>       </code><code>myArray=[</code><code>"Google"</code><code>,</code><code>"Microsoft"</code><code>,</code><code>"Adobe"</code><code>,</code><code>"Facebook"</code><code>,</code><code>"Amazon"</code><code>];</code> <code>       </code><code>myConvertedList=myArray.toList();</code> <code>       </code><code>WriteOutput</code><code>(myConvertedList);</code> <code></</code><code>cfscript</code><code>></code> Vs <code><</code><code>cfscript</code><code>></code> <code>       </code><code>// Declare an array</code> <code>       </code><code>myArray=[</code><code>"Google"</code><code>,</code><code>"Microsoft"</code><code>,</code><code>"Adobe"</code><code>,</code><code>"Facebook"</code><code>,</code><code>"Amazon"</code><code>];</code> <code>       </code><code>myConvertedList=myArray.toList();</code> <code>       </code><code>WriteOutput</code><code>(myConvertedList);</code> <code></</code><code>cfscript</code><code>></code> If I were a new developer I would be confused by what <code>myArray=ArrayNew(1);</code> does. Is it necessary? If I don't do it, do I get something different?  
Comment by James Mohler
1456 | November 27, 2018 07:39:26 PM GMT
James- Both are the same. However, I see what you mean. I'll change the sample.
Comment by Saurav Ghosh
1458 | November 28, 2018 08:08:01 AM GMT