Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Code This IF Statement
Message
De
11/04/2009 17:10:46
 
 
À
11/04/2009 16:17:16
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01394340
Message ID:
01394370
Vues:
39
>>You need to define oProc at the top. Remember that an IF block is a scope.
>>
>
>
>They are of two different types, you can't do that. What you'll need to do is create a common type/interface and inherit each class from that base type. you then can declare the oProc as base type and you'll be able to do what you want.


There's gotta already be some kind of commonality, even if it's only an object, considering that he passes the oProc object to:

int iRetVal = csAppDataAccess.ExecuteNonQuery(oProc);

So, whatever type of parameter that his ExecuteNonQuery() method is expecting is the common object.

~~Bonnie
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