Veli Izzet said:
Dirk,
I accomplished everything except for one:
1000 is not ONE THOUSAND but THOUSAND (ONE DROPS). Do you know if the
author is around here so I can ask, or can you see a quick solution
with that particular code.
You could modify it along these lines:
'---- modifications to function English() -----
Dim Quotient As Currency
' ... code for trillions, billions, millions remains unchanged ...
If (N >= Thousand) Then
Quotient = N \ Thousand
If Quotient > 1@ Then
Buf = Buf & EnglishDigitGroup(Quotient) & " "
End If
Buf = Buf & "thousand"
N = N Mod Thousand
If (N >= 1@) Then Buf = Buf & " "
End If
' ... code for rest of function remains unchanged ...
'---- end of modifications to function English() -----
If you use similar logic for hundreds, you'll also need to modify the
code for the function EnglishDigitGroup(). That modification would look
like this:
'---- modifications to function EnglishDigitGroup() -----
' ... beginning of function is unchanged ...
'Do hundreds
Select Case (N \ 100)
Case 0: Buf = "": Flag = False
Case 1: Buf = "hundred": Flag = True
' ... rest of function is unchanged ...
'---- end of modifications to function EnglishDigitGroup() -----
Of course, your functions will supply the Turkish versions of the number
words. And they will probably be called "Turkish()" and
"TurkishDigitGroup()". <g>