Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataView/DataSet/DataReader
Message
From
09/01/2007 15:22:12
 
 
To
09/01/2007 15:11:20
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01183234
Message ID:
01183937
Views:
42
>>
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform