Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datarow Operation
Message
 
À
03/10/2006 04:51:11
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01158788
Message ID:
01158806
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform