John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Catégorie:
Code, syntaxe and commandes
>>>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
I didn't think of using pure object... :( ... Thanks for the reminder.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement