Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datarow Operation
Message
 
To
03/10/2006 04:51:11
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01158788
Message ID:
01158806
Views:
14
This message has been marked as the solution to the initial question of the thread.
have you tried to cast your fields?
drSales["invAmt"] = (decimal)drSales["invAmt"] * (decimal)dr["rate"];
>How can I perform +-*/ operation with datarow, eg.
>
>
>//drSales is datarow
>//dr is datarow
>
>drSales["invAmt"] = drSales["invAmt"] * dr["rate"];
>
>
>give me Error 2 Operator '*' cannot be applied to operands of type 'object' and 'object'
>
>
>Thanks
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform