Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

CCur

The CCur function converts an ASP variant variable into a currency value. A currency value is similar to decimal in that all of the digits are significant and cannot be lost due to internal representations of floating point data.

This conversion function can throw runtime errors just like any other conversion function. You can check for these errors and report them using an error handler as shown below:

Dim sValue
Dim cValue

sValue ="123.456789"
On Error Resume Next
cValue = CCur(sValue)
If Err.Number <> 0 Then
    Response.Write "An Error occurred converting to currency: " & sValue
End If

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"I only regret that I have one life to lose for my country." - Nathan Hale

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.