I am converting VB6 code to C# so far the conversion goes fine but I was just confused with Recordset conversion to Dataset so far I converted and assigned the recordset data using dataset as follows
String strData = ds.Tables[0].Rows[0]["Col"].ToString();
//this is in VB6 code rs!Col
Is this conversion correct, if so I am having some recordset as follows
double d = rs(somestring).Value // before this a select query executed
How can I convert this using dataset
double d= double.Parse(ds.Tables[0].Rows[0]["someString"].ToString());
Also rs.Fields(col)
Is it correct or any other?