"Carl Tribble" <ca*********@sbcglobal.net> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
Is there a method in VB .NET to convert a numeric dollar amount to it's
text equivalent for printing on a check?
I had to write that code for a payroll program.
This should get you started:
Convert the Amount to a string, then group in three's from the decimal going
left - I called them 'chunks'
A couple of arrays for words
from "one" thru "nineteen"
and
from "twenty" thru "ninety" (by tens)
then look at the first 2 digits of each group - and go from there.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 9/27/2004