Professional Documents
Culture Documents
Public Count, Place 'au fost declarate publice, ca poata fi preluate de functia
PreiaUnitati
Function SpellNumber(ByVal MyNumber, Optional MyCurrency As String = "")
MyNumber = Trim(Str(MyNumber))
End If
Count = 1
If Temp <> "" Then Lei = Temp & Place(Count) & Lei
Else
MyNumber = ""
End If
Count = Count + 1
Loop
Case "EUR"
str_amount = "Euro"
str_amounts = "Euro"
str_ban = "cent"
str_bani = "centi"
Case "USD"
str_amount = "Dolar"
str_amounts = "Dolari"
str_ban = "Cent"
str_bani = "Centi"
Case Else:
str_amount = "Leu"
str_amounts = "Lei"
str_ban = "ban"
str_bani = "bani"
End Select
Case ""
Case "Unu"
Case Else
Case ""
Case "Unu"
Case Else
bani = " si " & bani & " " & str_bani
End Select
End Function
Else
End If
End If
Else
End If
PreiaSute = Result
End Function
Function PreiaZeci(ZeciText)
Case Else
End Select
Case 2:
Else
End If
Case 3:
Else
End If
Case 4:
Else
End If
Case 5:
Else
End If
Case 6:
Else
End If
Case 7:
If Right(ZeciText, 1) = "0" Then
Else
End If
Case 8:
Else
End If
Case 9:
Else
End If
Case Else
End Select
End If
Else
PreiaZeci = Result
End If
End Function
' Converteste un numar din intervalul 1-9 in text.
Function PreiaUnitati(Digit)
Case 1:
If Count = 1 Then
PreiaUnitati = "Unu"
PreiaUnitati = "O"
PreiaUnitati = "Un"
PreiaUnitati = "Un"
PreiaUnitati = "Un"
End If
Case 2:
If Count = 1 Then
PreiaUnitati = "Doi"
PreiaUnitati = "Doua"
PreiaUnitati = "Doua"
PreiaUnitati = "Doua"
Place(4) = " Miliarde "
PreiaUnitati = "Doua"
End If
End Select
End Function