Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is this function again?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00245951
Message ID:
00246090
Vues:
25
I do not what to return a empty string because I have to test it twose.
Ex: if CheckStringForNull(rs!Myfield) = ""

>
>What about returning the string instead of returning a boolean value?
>
>Function CheckStringForNull(ByVal Txt As Variant) As String
> CheckStringForNull = Txt & ""
>End Function
>
>If you only want to return if the string is empty, you can also use this:
>
Vendu!
Ex: if EmptyTxt(rs!MyField)

>Function EmptyTxt(ByVal Txt As String) As Boolean
> EmptyTxt = (Trim$(Txt & "") = "")
>End Function
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform