Appendix C ColdFusion Functions

Appendix C

ColdFusion Functions

This chapter describes the functions in ColdFusion Markup Language (CFML). The introduction of this chapter includes: ? A summary of ColdFusion functions ? A list of new functions in ColdFusion 5 ? A list of functions by category The rest of this chapter provides descriptions of each function.

Contents

? Alphabetical List of ColdFusion Functions...........................................................................2 ? New functions in ColdFusion 5.............................................................................................4 ? Array functions......................................................................................................................4 ? Authentication functions .......................................................................................................4 ? Conversion functions.............................................................................................................4 ? Date and time functions.........................................................................................................5 ? Decision functions.................................................................................................................5 ? Display and formatting functions ..........................................................................................5 ? Dynamic evaluation functions ...............................................................................................6 ? International functions...........................................................................................................6 ? List functions.........................................................................................................................6 ? Mathematical functions .........................................................................................................6 ? Query functions .....................................................................................................................7 ? String functions .....................................................................................................................7 ? Structure functions ................................................................................................................8 ? System functions ...................................................................................................................8 ? Other functions ......................................................................................................................8

2

ColdFusion Functions

Alphabetical List of ColdFusion Functions

Abs ACos ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ArrayInsertAt ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArrayNew ArrayPrepend ArrayResize ArraySet ArraySort ArraySum ArraySwap ArrayToList Asc ASin Atn AuthenticatedContext AuthenticatedUser BitAnd BitMaskClear BitMaskRead

DecrementValue Decrypt DeleteClientVariable DirectoryExists DollarFormat Duplicate Encrypt Evaluate Exp ExpandPath FileExists Find FindNoCase FindOneOf FirstDayOfMonth Fix FormatBaseN GetBaseTagData GetBaseTagList GetBaseTemplatePath GetClientVariablesList GetCurrentTemplatePath GetDirectoryFromPath GetException GetFileFromPath GetFunctionList GetHttpRequestData

IsWDDX JavaCast JSStringFormat LCase Left Len ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify

Randomize RandRange REFind REFindNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SetLocale SetProfileString SetVariable Sgn Sin SpanExcluding SpanIncluding Sqr StripCR StructAppend

Alphabetical List of ColdFusion Functions

BitMaskSet

GetHttpTimeString

BitNot

GetLocale

BitOr

GetMetricData

BitSHLN

GetProfileString

BitSHRN

GetTempDirectory

BitXor

GetTempFile

Ceiling

GetTemplatePath

Chr

GetTickCount

CJustify

GetTimeZoneInfo

Compare

GetToken

CompareNoCase

Hash

Cos

Hour

CreateDate

HTMLCodeFormat

CreateDateTime

HTMLEditFormat

CreateObject

IIf

CreateODBCDate

IncrementValue

CreateODBCDateTime InputBaseN

CreateODBCTime

Insert

CreateTime

Int

CreateTimeSpan

IsArray

CreateUUID

IsAuthenticated

DateAdd

IsAuthorized

DateCompare

IsBinary

DateConvert

IsBoolean

DateDiff

IsCustomFunction

DateFormat

IsDate

DatePart

IsDebugMode

Day

IsDefined

DayOfWeek

IsLeapYear

DayOfWeekAsString

IsNumeric

3

Log

StructClear

Log10

StructCopy

LSCurrencyFormat

StructCount

LSDateFormat

StructDelete

LSEuroCurrencyFormat StructFind

LSIsCurrency

StructFindKey

LSIsDate

StructFindValue

LSIsNumeric

StructGet

LSNumberFormat

StructInsert

LSParseCurrency

StructIsEmpty

LSParseDateTime

StructKeyArray

LSParseEuroCurrency StructKeyExists

LSParseNumber

StructKeyList

LSTimeFormat

StructNew

LTrim

StructSort

Max

StructUpdate

Mid

Tan

Min

TimeFormat

Minute

ToBase64

Month

ToBinary

MonthAsString

ToString

Now

Trim

NumberFormat

UCase

ParagraphFormat

URLDecode

ParameterExists

URLEncodedFormat

ParseDateTime

Val

Pi

ValueList

PreserveSingleQuotes Week

Quarter

WriteOutput

QueryAddColumn

XMLFormat

4

ColdFusion Functions

DayOfYear DaysInMonth DaysInYear DE (Delay Evaluation) DecimalFormat

IsNumericDate IsProtected IsQuery IsSimpleValue IsStruct

New functions in ColdFusion 5

QueryAddRow QueryNew QuerySetCell QuotedValueList Rand

Year YesNoFormat

GetHttpRequestData

Array functions

ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ArrayInsertAt

ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArrayNew

Authentication functions

ArrayPrepend ArrayResize ArraySet ArraySort ArraySum

ArraySwap ArrayToList IsArray ListToArray

AuthenticatedContext AuthenticatedUser IsAuthenticated

Conversion functions

IsAuthorized

ToBase64 ToBinary

ToString Hash

URLDecode

XMLFormat

URLEncodedFormat

Alphabetical List of ColdFusion Functions

5

Date and time functions

CreateDate CreateDateTime CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan DateAdd DateCompare DateConvert

DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear FirstDayOfMonth

GetHttpTimeString GetTimeZoneInfo Hour IsDate IsLeapYear IsNumericDate LSDateFormat LSIsDate LSParseDateTime LSTimeFormat

Minute Month MonthAsString Now ParseDateTime Quarter Second TimeFormat Week Year

Decision functions

FileExists IsArray IsAuthenticated IsAuthorized IsBinary IsBoolean

IsCustomFunction IsDate IsDebugMode IsDefined IsLeapYear IsNumeric

Display and formatting functions

IsNumericDate IsProtected IsQuery IsSimpleValue IsStruct IsWDDX

LSIsCurrency LSIsDate LSIsNumeric ParameterExists

DateFormat DecimalFormat DollarFormat FormatBaseN

HTMLCodeFormat HTMLEditFormat LSCurrencyFormat LSDateFormat

LSEuroCurrencyFormat LSNumberFormat LSTimeFormat NumberFormat

ParagraphFormat TimeFormat YesNoFormat

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download