Convert Numbers Into Their Textual Equivalents

Category:
Miscellaneous
Type:
Modules
Difficulty:
Intermediate

Author: Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
These functions convert numbers into their textual equivalents as well as convert them into Indian currency, so there are no more millions. I Downloaded the spellNumber() function from a site, and in its original state, contained a series of errors. The problem with the code was it didn’t spell 99, and when the number was greater than 999999, it gave erroneous output. I have corrected this, and am posting it here for other developers. The code was originally submitted at Microsoft support.

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

Declarations:

Code: