Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataView/DataSet/DataReader
Message
De
09/01/2007 15:22:12
 
 
À
09/01/2007 15:11:20
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01183234
Message ID:
01183937
Vues:
43
>>
>>int.Parse(cRow["CashAmt"].ToString());.
>>
>
>Sam we already told u how u could do this
>int myVar = (int)cRow["CashAmt"]
>
>the (int)cRow["CashAmt"] what is does is cast what ever is on the cRow["CashAmt"] to type int, note that is that cast isn't possible you will get an error.

Yes I know what you're saying.

So when I query my data source, what is returned is not the datatype that is in the source table, so I must "cast" it to what I want. Is that it?

Alexandre, I really appreciate your patience and help.
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville

No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform