Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of question mark in parameters
Message
De
09/11/2011 11:04:11
 
 
À
09/11/2011 10:53:01
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01528240
Message ID:
01528489
Vues:
33
>Is this the syntax you are referring to:
>
>
>        ' Avoid to receive a null
>        ' expC1 Value
>        Public Function GetNonNullable(ByVal tcValue As String) As String
>            Dim lcValue As String = ""
>
>            ' If we have a value
>            If Not IsDBNull(tcValue) Then
>                lcValue = tcValue
>            End If
>
>            Return lcValue
>        End Function
>


No. What I'm saying is that I think your If should be this:
            If Not tcValue = null Then
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform