Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of question mark in parameters
Message
De
09/11/2011 10:24:56
 
 
À
09/11/2011 10:17:04
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:
01528485
Vues:
35
>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?

The method initializes a local variable to empty. But, the parameter received maybe null, empty or contains a value. Thus, in the method, I only need to verify if it is not null. If that is the case, then the variable is set to it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform