cfml

Trying to find a syntax highlighter for ColdFusion in Notepad++

北城以北 提交于 2019-11-30 17:25:50
I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks. orangepips Update : Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as of 23 Sept 2011. Disregard nppColdFusion is actively maintained In notepadd ++, go to 'Plugins'>

Trying to find a syntax highlighter for ColdFusion in Notepad++

二次信任 提交于 2019-11-30 16:38:28
问题 I use CFEclipse for most of my projects and heavy lifting but sometimes I find the need to do a quick fix on pages outside the project scope that is easier to accomplish in a simple text editor. I have googled but can't seem to find an answer so either a link to a download or a link to how to build my own would be awesome. thanks. 回答1: Update : Brien Malone's answer below along with charlie arehart's comments are what people should use at this point as nppColdFusion is no longer maintained as

ColdFusion: More efficient structKeyExists() instead of isDefined()

血红的双手。 提交于 2019-11-30 16:27:21
问题 Which of these is more efficient in ColdFusion? isDefined('url.myvar') or structKeyExists(url, 'myvar') 回答1: These days (CF8+) the difference in speed is not that great. However, structKeyExists is indeed a little faster. Here's why. When you use isDefined , the string you pass in is searched for as a key name in several scopes. As of CF9, the list of scopes, in the order checked is: (source) Local (function local, UDFs and CFCs only) Arguments Thread local (inside threads only) Query (not a

Select one column DISTINCT SQL

你离开我真会死。 提交于 2019-11-30 08:32:41
Added: Working with SQL Server 2000 and 2005, so has to work on both. Also, value_rk is not a number/integer (Error: Operand data type uniqueidentifier is invalid for min operator) Is there a way to do a single column "DISTINCT" match when I don't care about the other columns returned? Example: **Table** Value A, Value L, Value P Value A, Value Q, Value Z I need to return only one of these rows based on what is in the first one (Value A). I still need results from the second and third columns (the second should actually match all across the board anyway, but the third is a unique key, which I

Join Two Arrays in ColdFusion

99封情书 提交于 2019-11-30 06:05:41
Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat() ? Not really, but guess what, just use Java! :) <cfset foo = [1,2,3]> <cfset bar = [4,5,6]> <cfset foo.addAll( bar )> reference: Java's Collection Interface API . source: http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/merging-two-arrays-267 CF10+, use arrayAppend(array1, array2, true); https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arrayappend.html If you're using Railo , you can use ArrayMerge (E.g. <cfset NewArray=ArrayMerge(FirstArray

Why does 0.06 + 0.01 = 0.07 in ColdFusion?

拥有回忆 提交于 2019-11-29 13:07:23
Why don't math operations in ColdFusion seem to be affected by floating point math issues? Take the code: result = 0.06 + 0.01; writedump(result); writedump(result.getClass().getName()); Which outputs 0.07 java.lang.Double However the equivlant Java code produces what I"d expect when adding two doubles: public static void main(String[] args) { double a = 0.01d; double b = 0.06d; System.out.println(a + b); //0.06999999999999999 } This is what I'd expect to see from ColdFusion because of the realities of floating math ( http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_goldberg.html ).

Select one column DISTINCT SQL

人盡茶涼 提交于 2019-11-29 12:35:59
问题 Added: Working with SQL Server 2000 and 2005, so has to work on both. Also, value_rk is not a number/integer (Error: Operand data type uniqueidentifier is invalid for min operator) Is there a way to do a single column "DISTINCT" match when I don't care about the other columns returned? Example: **Table** Value A, Value L, Value P Value A, Value Q, Value Z I need to return only one of these rows based on what is in the first one (Value A). I still need results from the second and third columns

When and when not to use hash # symbol in ColdFusion?

喜欢而已 提交于 2019-11-29 11:21:36
I use the # symbol around every dynamic value in my application and after posting some of my code on here for help, I've been told there's no need to use the # in many places e.g. <cfif> statements. So I have started removing the # symbols, until I realised I broke my application because I removed the # symbols from the value="" attribute of a <cfprocparam> tag. I am confused as to: Why use the # symbol is some places and not others (and what is the benefit of not using it?) Why if they are not required in <cfif> and <cfargument> tags are they suddenly required in <cfprocparam> tags? Due to

Coldfusion 10 DateFormat Issue

笑着哭i 提交于 2019-11-29 08:32:18
I am using the DateFormat function to convert dates to this format: yyyy-mm-dd . This is the original format of the date: dd-mm-yyyy . Below is a snippet of the code: <cfset newdate = #DateFormat(Trim(mydate), "yyyy-mm-dd")# /> The problem is that I get different results for different dates. For example: If my original date is: 15-05-2013 ( dd-mm-yyyy ) The result is: 2013-05-15 ( yyyy-mm-dd ) However, if I change the input and: The original date is: 01-05-2013 ( dd-mm-yyyy ) The result is: 2013-01-05 ( yyyy-dd-mm ) Any help or guidance as to what is wrong would be highly appreciated. I

Join Two Arrays in ColdFusion

强颜欢笑 提交于 2019-11-29 04:47:13
问题 Is there a built-in way to join two arrays in ColdFusion, similar to JavaScript's array.concat() ? 回答1: Not really, but guess what, just use Java! :) <cfset foo = [1,2,3]> <cfset bar = [4,5,6]> <cfset foo.addAll( bar )> reference: Java's Collection Interface API. source: http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/merging-two-arrays-267 回答2: CF10+, use arrayAppend(array1, array2, true); https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b