CFML Language Reference for ColdFusion Express

CFML Language

Reference for

ColdFusion Express

ColdFusion Express for Windows?

NT and Windows 95/98

Allaire Corporation

Copyright Notice

? Allaire Corporation. All rights reserved.

This manual, as well as the software described in it, is furnished under license and may

be used or copied only in accordance with the terms of such license. The content of

this manual is furnished for informational use only, is subject to change without

notice, and should not be construed as a commitment by Allaire Corporation. Allaire

Corporation assumes no responsibility or liability for any errors or inaccuracies that

may appear in this book.

Except as permitted by such license, no part of this publication may be reproduced,

stored in a retrieval system, or transmitted in any form or by any means, electronic,

mechanical, recording, or otherwise, without the prior written permission of Allaire

Corporation.

ColdFusion is a registered trademark and Allaire, HomeSite, the ColdFusion logo and

the Allaire logo are trademarks of Allaire Corporation in the USA and other countries.

Microsoft, Windows, Windows NT, Windows 95, Microsoft Access, and FoxPro are

registered trademarks of Microsoft Corporation. All other products or name brands

are the trademarks of their respective holders. Solaris is a trademark of Sun

Microsystems Inc. UNIX is a trademark of Novell Inc. PostScript is a trademark of

Adobe Systems Inc.

Contents

Intended Audience........................................................................................................................... 2

Developer Resources ....................................................................................................................... 2

About ColdFusion Express Documentation .................................................................................. 2

Online documentation............................................................................................................. 3

ColdFusion Express titles......................................................................................................... 3

Documentation Conventions ......................................................................................................... 3

Printing ColdFusion Express Documentation............................................................................... 3

Getting Answers ............................................................................................................................... 4

Chapter 1: ColdFusion Tags.............................................................................5

Alphabetical List of ColdFusion Express Tags ............................................................................... 6

ColdFusion Tags that are not in ColdFusion Express ................................................................... 7

CFABORT ........................................................................................................................................ 10

CFAPPLICATION............................................................................................................................ 12

CFBREAK ........................................................................................................................................ 14

CFCOOKIE ...................................................................................................................................... 16

CFIF/ CFELSEIF/ CFELSE ....................................................................................................... 18

CFINCLUDE ................................................................................................................................... 21

CFINSERT ....................................................................................................................................... 22

CFLOCATION ................................................................................................................................. 25

CFLOOP .......................................................................................................................................... 26

Index Loops............................................................................................................................. 26

Conditional Loops .................................................................................................................. 27

Looping over a Query ............................................................................................................. 28

Looping over a List ................................................................................................................. 29

Looping over a Structure........................................................................................................ 30

CFOUTPUT..................................................................................................................................... 32

CFPARAM ....................................................................................................................................... 34

CFQUERY........................................................................................................................................ 36

CFSET.............................................................................................................................................. 39

Arrays....................................................................................................................................... 39

CFSETTING .................................................................................................................................... 41

CFSWITCH/ CFCASE/ CFDEFAULTCASE ............................................................................. 42

CFUPDATE ..................................................................................................................................... 44

iv

CFML Language Reference for ColdFusion Express

Chapter 2: ColdFusion Functions..................................................................47

Alphabetical List of ColdFusion Functions...................................................................................48

Array Functions...............................................................................................................................50

Date and Time Functions...............................................................................................................50

Decision Functions.........................................................................................................................51

Display and Formatting Functions................................................................................................51

Dynamic Evaluation Functions .....................................................................................................51

International Functions .................................................................................................................52

List Functions..................................................................................................................................52

Mathematical Functions ................................................................................................................53

Query Functions .............................................................................................................................53

String Functions..............................................................................................................................54

Structure Functions ........................................................................................................................54

System Functions............................................................................................................................55

Other Functions ..............................................................................................................................55

Abs....................................................................................................................................................56

ACos .................................................................................................................................................57

ArrayAppend ...................................................................................................................................59

ArrayAvg...........................................................................................................................................60

ArrayClear........................................................................................................................................62

ArrayDeleteAt ..................................................................................................................................63

ArrayInsertAt ...................................................................................................................................64

ArrayIsEmpty...................................................................................................................................65

ArrayLen ..........................................................................................................................................66

ArrayMax .........................................................................................................................................67

ArrayMin..........................................................................................................................................69

ArrayNew .........................................................................................................................................71

ArrayPrepend ..................................................................................................................................72

ArrayResize ......................................................................................................................................73

ArraySet............................................................................................................................................74

ArraySort..........................................................................................................................................75

ArraySum .........................................................................................................................................76

ArraySwap........................................................................................................................................78

ArrayToList ......................................................................................................................................79

Asc ....................................................................................................................................................80

ASin ..................................................................................................................................................81

Atn ....................................................................................................................................................83

BitAnd ..............................................................................................................................................84

BitMaskClear ...................................................................................................................................85

BitMaskRead ...................................................................................................................................86

BitMaskSet.......................................................................................................................................87

BitNot...............................................................................................................................................88

BitOr.................................................................................................................................................89

BitSHLN ...........................................................................................................................................90

BitSHRN...........................................................................................................................................91

BitXor ...............................................................................................................................................92

Ceiling ..............................................................................................................................................93

Chr....................................................................................................................................................94

Contents

CJustify.............................................................................................................................................95

Compare ..........................................................................................................................................96

CompareNoCase.............................................................................................................................98

Cos....................................................................................................................................................99

CreateDate.....................................................................................................................................100

CreateDateTime............................................................................................................................102

CreateODBCDate..........................................................................................................................105

CreateODBCDateTime .................................................................................................................107

CreateODBCTime .........................................................................................................................109

CreateTime ....................................................................................................................................111

CreateTimeSpan ...........................................................................................................................113

CreateUUID...................................................................................................................................114

DateAdd .........................................................................................................................................115

DateCompare ................................................................................................................................117

DateConvert ..................................................................................................................................120

DateDiff .........................................................................................................................................123

DateFormat ...................................................................................................................................125

DatePart .........................................................................................................................................127

Day .................................................................................................................................................129

DayOfWeek....................................................................................................................................130

DayOfWeekAsString .....................................................................................................................131

DayOfYear......................................................................................................................................132

DaysInMonth ................................................................................................................................133

DaysInYear ....................................................................................................................................134

DE...................................................................................................................................................135

DecimalFormat .............................................................................................................................136

DecrementValue ...........................................................................................................................137

Decrypt ..........................................................................................................................................138

DeleteClientVariable ....................................................................................................................139

DirectoryExists ..............................................................................................................................140

DollarFormat.................................................................................................................................141

Encrypt...........................................................................................................................................142

Evaluate .........................................................................................................................................143

Exp..................................................................................................................................................144

ExpandPath ...................................................................................................................................145

FileExists ........................................................................................................................................146

Find ................................................................................................................................................147

FindNoCase ...................................................................................................................................149

FindOneOf .....................................................................................................................................151

FirstDayOfMonth..........................................................................................................................153

Fix ...................................................................................................................................................154

FormatBaseN.................................................................................................................................155

GetBaseTemplatePath ..................................................................................................................156

GetClientVariablesList..................................................................................................................157

GetCurrentTemplatePath.............................................................................................................158

GetDirectoryFromPath.................................................................................................................159

GetFileFromPath...........................................................................................................................160

GetLocale.......................................................................................................................................162

GetProfileString.............................................................................................................................164

v

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

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

Google Online Preview   Download