Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overload problem on BizObj
Message
From
15/08/2003 11:14:38
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
15/08/2003 08:38:13
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00820449
Message ID:
00820518
Views:
17
Brian,

Bonnie hit it in the eye...

Search help for "narrowing conversion" and select "Compiler Error CS0029" topic:

"A narrowing conversion exists when converting to a data type that occupies less storage space in memory than the data type we are converting from."

There's info in there on how to best solve your issue.
---J

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform