Results 1 to 4 of 4

Thread: What are the Elements of Coldfusion Expressions

  1. #1
    Join Date
    Feb 2009

    What are the Elements of Coldfusion Expressions


    I hope many of you are aware about the coldfusion - a tag based programming language that allows database access for web server.
    I want to know what are the elements of coldfusion expressions ?
    Can anybody provide me the information about the same... thnx

  2. #2
    Join Date
    Apr 2008

    Re: What are the Elements of Coldfusion Expressions

    Elements of Coldfusion Expressions

    ColdFusion expressions consist of operands and operators.
    Operands are comprised of constants and variables.
    Operators are the verbs that act on the operands; functions are a form of operator.

    Operands : DataTypes, Constant, Variables
    - Data types of ColdFusion operands
    - ColdFusion constants
    - ColdFusion variables: naming conventions, kinds of variables, scoping, and other relevant details

  3. #3
    Join Date
    Jan 2008

    Re: What are the Elements of Coldfusion Expressions

    Data Types of Constants and Variables

    In ColdFusion, constants and variables have implied data types. The reason for the term "implied" is that there are no variable declarations that define the scalar data type of a variable as one finds in statically typed languages such as Pascal. Whenever you use a constant or set the value of a variable, the value you use has a type, be it integer, real, or string.


    Constants are simple scalar values that you can use within expressions and functions. They include integers, real numbers, time and date values, boolean values, string values, and lists. Constants do not include more complex values, such as structures and arrays, because arrays and structures are created as variables.


    Variables are the most frequently used operands. Unlike constants, which always have the same value, their values can be set and reset, passed as attributes to CFML tags and JRun servlets. Like constants, they can also be passed as parameters to functions, and can replace most constants.

  4. #4
    Join Date
    Jan 2008

    Re: What are the Elements of Coldfusion Expressions


    Integers -
    Numbers with no decimal point. Integers have both a lower and an upper limit.
    The lower limit for a signed integer is -2,147,483,648
    The upper limit for a signed integer is 2,147,483,647.

    If you specify an integer that exceeds the upper or lower limit, ColdFusion converts the number to a floating point value to avoid overflow. In doing so, ColdFusion preserves the number's magnitude. However, the conversion to floating point comes at the expense of precision, since ColdFusion has only a fixed number of bits to work with.

    Real numbers -
    Numbers with a decimal part. Also known as floating point numbers.
    The range of ColdFusion numbers is approximately 10300, or 1 with 300 zeros after it. Most operations are accurate to 12 digits after the decimal point.
    ColdFusion supports scientific notation; this means that you can enter numbers in the form 3 E 16 and perform calculations.

    Strings -
    Text values, which can be enclosed in single (') or double (") quotes. Strings length is limited only by the amount of available memory on the ColdFusion server.
    To use a single quote inside a string that is single quoted, escape the single quote by using two single quotes. You can similarly escape a double quote inside a double quote-enclosed string. For example:
    "the ""techarena"" community"

Similar Threads

  1. Which is best ColdFusion or Flex
    By Groupism in forum Windows Software
    Replies: 7
    Last Post: 06-01-2012, 09:52 PM
  2. Coldfusion query problem
    By AZUL in forum Software Development
    Replies: 3
    Last Post: 26-11-2009, 06:55 PM
  3. Search text in database using Coldfusion
    By ABDUL KAREEM in forum Software Development
    Replies: 3
    Last Post: 05-11-2009, 11:53 AM
  4. How to update two database tables coldfusion
    By Rixwel in forum Software Development
    Replies: 3
    Last Post: 10-08-2009, 03:13 PM
  5. Photoshop Elements and Premiere Elements go to version 7.0
    By Killen in forum Customize Desktop
    Replies: 2
    Last Post: 29-08-2008, 01:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts