Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of question mark in parameters
Message
De
09/11/2011 10:17:04
 
 
À
07/11/2011 16:46: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:
01528484
Vues:
62
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform