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).

To 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.

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001342.htm