Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of question mark in parameters
Message
From
09/11/2011 11:04:11
 
 
To
09/11/2011 10:53:01
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01528240
Message ID:
01528489
Views:
35
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform