Ben Forta

Blog

February 14, 2002

Case-Insensitive Output Grouping

The GROUP attribute allows you to group records together within an output loop. By default, group processing is case-sensitive - meaning that values in the GROUP column that differ by case are treated as being in different groups. Obviously this has no impact on numeric values, but this does affect...

February 13, 2002

Output Suppression

To execute CFML code and not generate any output, enclose that code within tags. Unlike commenting out code, the code will still be executed. However, no output will be sent to the client, and extraneous white space will also be suppressed. (Applies to: ColdFusion 5 or later)

February 12, 2002

Monitoring Scheduled Events

ColdFusion executes scheduled events at intervals specified using or the ColdFusion Administrator. To check that scheduled events actually executed as intended, check the schedule.log file (in the cfusionlog directory). (Applies to: ColdFusion 4 or later)

February 11, 2002

And Field Names

By default, attempts to insert all available FORM fields into a specified table, matching each field name to a similarly named column. To exclude one or more form fields from the INSERT operation, use the FORMFIELDS attribute to specify a comma delimited list of field names that should not be...

February 10, 2002

Checking Date Validity

Passing invalid dates to any CFML date functions will throw an error. If you ever accept dates from users (or any other sources) you must verify that the specified dates are valid before you use them. The simplest way to do this is to use the IsDate() function. But, this function only supports US...

February 9, 2002

Specifying COM Object Locations

and CreateObject() allow COM objects to be invoked on remote servers. The server name, passed to the SERVERNAME attribute, is highly flexible. Values may be IP addresses, DNS names, URL's, server names, or a UNC paths. (Applies to: ColdFusion 3 or later)

February 8, 2002

Creating Date Time Objects

Some date functions require that date time objects be passed to them, even if a complete date time object is not needed. For example, DaysInMonth(), which returns the numbers of days in a specified month, needs to just know the month and year to perform the calculation, and yet the function takes a...

February 7, 2002

Manipulating File Paths

When working with file paths it is often necessary to extract specific portions of the path, for example, just the file name, or just the directory. Instead of performing manual processing to extract these values, you should use the CFML functions GetFileFromPath() and GetDirectoryFromPath() (which...

February 6, 2002

Careful With Those Date Functions

CFML features an extensive array of date functions that you may use within your applications. But use these functions carefully. Some return date time objects, while many others return ordinal values (values relative to a specific starting point). If you are using several of these functions...

February 5, 2002

Restarting Custom Tag Processing

is usually used to terminate Custom tag processing, but it has another use too. Specify METHOD="loop" to force ColdFusion to reexecute code within a Custom Tag. (Applies to: ColdFusion 4 or later)

Page 438 of 489 (4889 posts)