Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overload problem on BizObj
Message
De
15/08/2003 09:53:55
 
 
À
15/08/2003 08:38:13
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00820449
Message ID:
00820472
Vues:
18
Brian,

I don't know VB that well, but the only thing I can think of is that you're trying to pass a parameter that can't be converted. Your declaration is looking for an Int16, but maybe you're trying to pass it an Int32, or Int64??

~~Bonnie


>Overload problem
>
>
>I’m writing a method to retrive data in one of my BizObj’s and I’d Like to use a overload to and pass the int Primary key or a string containing a where clause. I’m declairing it like this.
>
>
>Public Function GetClientProFile(byVal tnClientID as int16)as DataSet
> Some code
>End Function
>
>Public Function GetClientProFile(byVal tcWhere as string)as DataSet
> Some code
>End Function
>
>This throw the following error whenever I try to call the method.
>
>Overload resolution failed because no accessable ‘GetClientProFile’ can be
>Called without a narrowing conversion.
>
>
>Anyone know what I’ve gotten wrong?
>
>
>Thanks
> Brian G
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform