Tag And Function Examples; Using Listsort In Coldfusion Mx - MACROMEDIA COLFUSION MX 7-MIGRATING APPLICATIONS TO COLDFUSION MX 7 Manual

Migrating applications to coldfusion mx 7
Table of Contents

Advertisement

Tag and function examples

This section provides remedies for some of the compatibility issues listed in
Function Changes."
Using cfregistry in ColdFusion MX
The
cfregistry
on UNIX to avoid compatibility problems when migrating to a later version of ColdFusion MX.
As an alternative, you can store variables in the following scopes:
Client
Text file
Encoded text file
Database
LDAP server
In Windows, you can continue to store client variables in the registry as in ColdFusion 5.
However, you should not use
the mail root and information about Verity collections and scheduled tasks, because much of this
information is no longer stored in the registry, or it is in a different location in the registry. The
ColdFusion settings that are stored in the registry are subject to change. Therefore, you should
not rely on registry keys that ColdFusion creates to store its system settings.

Using ListSort in ColdFusion MX

When sorting with
return the results in a different order. However, both are correct because in a
"apple" is equal to "APPLE".
In ColdFusion MX, a descending
as in an ascending
The following code produces different results in ColdFusion MX than in ColdFusion 5:
<cfset list = "orange,Orange,apple">
<cfset listAsc = ListSort(#list#, "textnocase", "asc")>
<cfset listDesc = ListSort(l#list#, "textnocase", "desc")>
<cfdump var = #listAsc#>
<cfdump var = #listDesc#>
This code produces the following results for ascending and descending sort operations in
ColdFusion 5 and ColdFusion MX:
Sort order
Ascending (
listAsc
Descending (
listDesc
For more information, see the
tag is deprecated for UNIX and Linux platforms. Therefore, you must remove it
cfregistry
in a descending order, ColdFusion 5 and ColdFusion MX
textnocase
textnocase
sort. This is different than in ColdFusion 5.
textnocase
ColdFusion 5 results
)
apple, orange,Orange
)
orange, Orange, apple
ListSort
to read ColdFusion settings from the registry, such as
sort returns the elements in the exact reverse order
ColdFusion MX results
apple,orange,Orange
Orange,orange,apple
function in CFML Reference.
Chapter 3, "Tag and
textnocase

Tag and function examples

sort,
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents