none
How to convert a String stored in an ArrayList to integer datatype. RRS feed

  • Question

  •  

    Anyone please help me that

    How to convert a String stored in an ArrayList to integer.

     

    i.e.  dt.Rows[Convert.ToInt32(b.Count.ToString()) - 1][3] = ( a[0] );

     

    I want to store the value of a[0] to integer type of dataset.

     

     

     

    Tuesday, November 27, 2007 6:44 AM

Answers

  • I believe you could use same Convert class to convert value into Ineger type

     

    dt.Rows[Convert.ToInt32(b.Count.ToString()) - 1][3] = Convert.ToInt32(a[0]);

    Wednesday, November 28, 2007 11:24 AM
    Moderator