Format an Integer With Commas and No Decimal Places (ASP)

Category:
ASP, HTML and XML
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: ASP

More information:
This ASP function will return an integer with commas in the appropriate place, e.g., 3250121 will be formattted as 3,250,121. Simple, but I always forget the syntax and have to look it up.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: