Adobe ColdFusion 8

Formatting individual data items

You can format individual data items. For example, you can format the salary data as monetary values. To format the salary data using the dollar format, you use the CFML function DollarFormat(number).

Change the format of the Salary

  1. Open the file actionpage.cfm in your editor.
  2. Change the following line:
    <td>#Salary#</td>

    to

    <td>#DollarFormat(Salary)#</td>

  3. Save the page.