Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass numeric to COMDLL
Message
From
25/02/2004 10:03:14
 
 
To
25/02/2004 09:45:13
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00880251
Message ID:
00880698
Views:
20
John,

That looks like a different error to me (first one was for the input parameter, this one's for the return value. Try this in your last line:
	return (decimal)b.getbalance(custNumber);
~~Bonnie

>Hi,
>No, it is the same
>
>
>VFP
>Method: GetBalance()
>LPARAMETERS custnumber AS Integer
>RETURN THIS.macurbalances[custnumber]
>
>
>.NET
>[WebMethod]
>public decimal RetrieveBalance(int custNumber)
>{
>	NETMyCustomer.mycustomer b = new NETMyCustomer.mycustomerClass();
>	return b.getbalance(custNumber);
>}
>
>
>Error: Cannot implicitly convert type 'object' to 'decimal'
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform