Home arrow ColdFusion arrow 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
(Page 1 of 7 )

The basis for the functionality and dynamic interaction in ColdFusion is due to the ColdFusion Markup Language tags and functions. However, it is the variables and the logic, combined with flow control that gives the programmability. ColdFusion tags together with the functions account for most of the content generation.

In an earlier tutorial we have seen that HTML and CFML tags can coexist. However, when the page is parsed by the server, what is returned to the user is pure HTML. This is characteristic of not only CFML, but also ASP, PHP, and so on. It was also seen that the CFML tags characteristically start with <CF..> and end with </CF..>. This is the cue to the ColdFusion interpreter that the content needs to be interpreted, and the result given out in HTML. Some of the facts to note, and remember are:

  • It is an interpreted language, like JavaScript.

  • All ColdFusion files are saved with the extension CFM, even if they contain HTML. Otherwise they will not be properly interpreted.

  • ColdFusion elements, called blocks, consist of the markup part and its content.

  • ColdFusion comments are not the same as HTML Comments.

  • ColdFusion elements are not case sensitive. However, for cross-platform usage, and assuming a possible migration to a non-Microsoft platform at a future date, it is better to be consistent.

  • CFML consists of approximately 100 tags.

  • CFML tags provide, flow control, conditional processing, charting and graphing services, and a host of others.

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