Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of question mark in parameters
Message
From
09/11/2011 10:17:04
 
 
To
07/11/2011 16:46: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:
01528484
Views:
64
>Declaration already has the variable set to empty. I initialize all my declarations to empty values. So, the only check needed after is to make sure it is not null to put the value in it. That will be in the condition. But, thanks for an alternative way to do it.

Not sure I understand that. If they're initialized to an empty value then how can they ever be null? I also wonder about the comparison you were doing to DBNull.Value ... I don't believe you can compare a string to DBNull.Value. Well, not in C# anyway ... maybe VB is more lax about that?
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