Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of question mark in parameters
Message
From
09/11/2011 11:56:46
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
09/11/2011 11:04:11
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:
01528507
Views:
37
>>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
>
Isn't it "Nothing" in VB.NET?
If Not tcValue Is Nothing Then
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform