1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| Public Function Date_Lims() As Date
Date_Lims = Date
End Function
Public Function Maintenant_Lims() As Date
Maintenant_Lims = Now
End Function
Public Function Droite_Lims(Texte As String, Longueur As Long) As String
If IsNull(Texte) Then
Droite_Lims = ""
Exit Function
End If
If Longueur > Len(Texte) Then
Longueur = Len(Texte)
End If
Droite_Lims = Right(Texte, Longueur)
End Function
Public Function Gauche_Lims(Texte As String, Longueur As Long) As String
If IsNull(Texte) Then
Gauche_Lims = ""
Exit Function
End If
If Longueur > Len(Texte) Then
Longueur = Len(Texte)
End If
Gauche_Lims = Left(Texte, Longueur)
End Function |
Partager