Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataView/DataSet/DataReader
Message
From
09/01/2007 15:11:20
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
09/01/2007 14:08:29
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01183234
Message ID:
01183930
Views:
40
>>>I'm trying to stay away from ...ToString() because I think it defeats the purpose.
>>
>>
>>Why?
>
>Hi MC,
>
>I want to read the data in as it comes in.
>I want to accept whatever comes in and insert it into another data field with the same datatype w/o having to do.
>
>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.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform