Académique Documents
Professionnel Documents
Culture Documents
If e(3) = 1 Then
If Pays = 0 Then
If e(2) <= 7 Then strBuff = "et un " Else strBuff = Unite(e(3))
Else
If e(2) <> 8 Then strBuff = "et un " Else strBuff = Unite(e(3))
End If
Else
strBuff = Unite(e(3))
End If
If e(0) < 20 Then
strBuff = Unite(e(0))
ElseIf e(0) < 70 Or (e(0) > 79 And e(0) < 90) Or Pays <> 0 Then
If e(3) > 0 And Left(strBuff, 2) <> "et" Then
strBuff = Trim(Dixaines(e(2))) & "-" & LTrim(strBuff)
ElseIf strBuff <> "" Then
strBuff = Dixaines(e(2)) & strBuff
Else
strBuff = Dixaines(e(2))
End If
Else
If e(0) > 89 Then i = 80 Else i = 60
If e(3) = 1 And e(2) = 7 Then
strBuff = RTrim(Dixaines(e(2) - 1)) & " " & "et onze "
Else
strBuff = RTrim(Dixaines(e(2) - 1)) & "-" & Unite(e(0) - i)
End If
End If
'Centaine
If e(1) = 1 Then
strBuff = "cent " & strBuff
ElseIf e(1) >= 1 Then
strBuff = Unite(e(1)) & "cent " & strBuff
End If
Centaine = strBuff
End Function
Sub InitPays()
Select Case Pays
Case 0 'France
Dixaines(7) = "soixante-dix "
Dixaines(8) = "quatre-vingt "
Dixaines(9) = "quatre-vingt-dix "
Case 1 'Belge
Dixaines(7) = "septante "
Dixaines(8) = "quatre-vingt "
Dixaines(9) = "nonante "
Case 2 'suisse
Dixaines(7) = "septante "
Dixaines(8) = "huitante "
Dixaines(9) = "nonante "
End Select
End Sub