July 25, 2001
The GetMetricData() function can return average server response time (how long it has taken to process requests). Values are reported using a sliding window the default size of which is 120 seconds. You can change this value (making it greater or smaller) by setting registry key...
July 24, 2001
The GetException() function may be used to obtain the Java exception object raised by a prior call to a Java object. Because ColdFusion resets the exception object on each method call you must use GetException() before any other methods or objects are called. (Applies to: ColdFusion 5 or later)
July 23, 2001
User Defined Functions (UDF's) can accept an unlimited number of parameters. To find out how many parameters were passed simply use the code ArrayLen(Arguments) to obtain the number of elements in the Arguments array. (Applies to: ColdFusion 5 or later)
July 22, 2001
User Defined Functions (UDF's) may access variables in just about any scope, including the default VARIABLES scope. But what if there is a local (within the UDF) variable of the same name? References to the variable name will refer to the local variable, to refer to the variable in the caller page...
July 21, 2001
User Defined Functions (UDF's) may accept required and optional parameters. To make a parameter required simply name it in the function declaration. To make a parameter optional do nothing at all. If it is there use it, and if not not. How do you access unnamed parameters? Use the Arguments array...
July 20, 2001
Local variables within a User Defined Function (UDF) are defined using the var keyword. Variables must follow standard ColdFusion variable naming conventions and rules, and variables must be initialized with an initial value. So, VAR X is not allowed, but VAR X-"" is. (Applies to: ColdFusion 5 or...
July 19, 2001
Unlike Custom Tags, User Defined Functions (UDF's) return results, and the return value is not optional. Every UDF must end with the return keyword followed by the return value (which may be any expression). (Applies to: ColdFusion 5 or later)
July 18, 2001
ColdFusion 5 introduced a new log file format which may cause problems if you are using third party log file analysis tools. If this is the case you can instruct ColdFusion to write log entries in the CF4.x format by selecting the Logging Settings screen in the ColdFusion Administrator's Tools tab....
July 17, 2001
Have a long list of data sources defined? Click on the titles above the Data Source Name and ODBC Driver columns (in the ColdFusion Administrator ODBC Data Sources page) to sort the lists as needed. But don't use these sort options after clicking the Verify All Connections or CF Administrator will...
July 16, 2001
ColdFusion has included Verity search engine technology for a long time now, but new to ColdFusion 5 is the inclusion of Verity's new K2 Server. This high performance searching engine can dramatically improve the performance of searches performed using , and as such, is well worth configuring and...