Home arrow ColdFusion arrow Page 2 - Everything You Must Know About ColdFusion Variables
COLDFUSION

Everything You Must Know About ColdFusion Variables


Understanding ColdFusion variables and logic is vital to being able to program in the language. In this tutorial, Jay's second covering ColdFusion, you will learn about the types of ColdFusion variables and how to use them.

Author Info:
By: Jayaram Krishnaswamy
Rating: 4 stars4 stars4 stars4 stars4 stars / 25
August 15, 2005
TABLE OF CONTENTS:
  1. · Everything You Must Know About ColdFusion Variables
  2. · Developing ColdFusion Content
  3. · Variable definition with CFSET tag
  4. · Variable by assigning statements in CFSCRIPT
  5. · Scope of a variable
  6. · Data Type Category of Variables
  7. · How do we name a variable?

print this article
SEARCH DEVARTICLES

Everything You Must Know About ColdFusion Variables - Developing ColdFusion Content
(Page 2 of 7 )

ColdFusion content can be generated by any text editor, such as Notepad or WordPad. You can also use Macromedia Dreamweaver to create content with its WYSIWIG capabilites. Using Sapien Technologies Primal Script 3.1, and similar products, one can generate the CF content. Search the web to find WYSIWIG ColdFusion Editors, and you will find a couple of others. Some of the in-built intellisense like capabilites help in rapid development of applications. For example, see the dropdown help in the choice of tags in Sapien's Primal Script 3.1. For most of our examples just Notepad will be used.

ColdFusion Variables

Variables are at the heart of programming languages and ColdFusion is no exception. Variables are containers of information kept in memory. Manipulation of variables with operators using the built-in logic is what programming is about. Variables are the building blocks. It is necessary to have a good understanding of what variables are, what is their scope (or lifetime of their existence), what types of data they can hold, and so on.

We saw earlier how to create a variable using the <cfset> tag. What we did was create a variable by assigning a value to it. This is the most common way to create a variable. CFScript, supported by ColdFusion 6.1 is another JavaScript-like extension which can be used to write ColdFusion logic. CFScript can also be used for assigning values to variables using assigning statements. We will look at some examples during this tutorial.

ColdFusion auto generates some variables that give information about the results of certain tags and some operations. Specifically, for example <cffile> tag returns file size information through its cffile.filesize reference. There are many such tags that return variables.


blog comments powered by Disqus
COLDFUSION ARTICLES

- Adobe ColdFusion Just Got More RAD
- How to Access a SQL Anywhere Database with C...
- CFXML: Probing XMLDOM in ColdFusion
- Creating a Web Service with ColdFusion: the ...
- CFAjax: What it is and How to Use it
- Querying SQL 2000 Server from ColdFusion
- Introduction to ColdFusion Markup Language, ...
- Introduction to ColdFusion Markup Language
- Databases and Dreamweaver MX 2004, concluded
- Databases and Dreamweaver MX 2004
- Welcome to Coldfusion MX 6.1, concluded
- Welcome to Coldfusion MX 6.1
- What You Must Know About ColdFusion Flow-Con...
- What You Must Know About Operators in ColdFu...
- Everything You Must Know About ColdFusion Va...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials