Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting null value on Integer
Message
From
23/01/2016 16:46:03
 
 
To
23/01/2016 14:25:51
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01630133
Message ID:
01630136
Views:
48
So..... DBNull and null are not the same. Could that be the issue?


>I have this to detect a null value on a string:
>
>
>        ' If we have a value
>        If Not tcValue Is DBNull.Value Then
>            lcString = Trim(tcValue)
>        End If
>
>
>Using such an approach for an integer won't work because Is operator cannot be used against an integer.
>
>What would be an easier solution?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform