Convert Numbers and Currency Values to English

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning

Author: Scott Seligman

Version Compatibility: Visual Basic 5

More information:
The function NumToString writes out any number, up to about 920 trillion, the limit of the Currency variable type, in English words. It only writes out the integer portion of the number. The DollarToString function does the same, but places the word dollars after the string and also writes out the fractional part of the value as the cents.

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

Declarations:

Code: