ColdFusion
  Home arrow ColdFusion arrow Everything You Must Know About ColdFusion ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
COLDFUSION

Everything You Must Know About ColdFusion Variables
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 2 stars2 stars2 stars2 stars2 stars / 4
    2005-08-15

    Table of Contents:
  • Everything You Must Know About ColdFusion Variables
  • Developing ColdFusion Content
  • Variable definition with CFSET tag
  • Variable by assigning statements in CFSCRIPT
  • Scope of a variable
  • Data Type Category of Variables
  • How do we name a variable?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Everything You Must Know About ColdFusion Variables
    (Page 1 of 7 )

    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.

    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.

    More ColdFusion Articles
    More By Jayaram Krishnaswamy


       · I very much would like to have your comments on this article. [b]Macromedia[/b] has...
     

    COLDFUSION ARTICLES

    - 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...
    - My First Application on ColdFusion MX Server






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway