How to read data from Datatable? - TestingQ.com

-->Exclusive Portal for Testing Jobs

How to read data from Datatable?

Ans:
intRows=dataTable.GetSheet(1).GetRowCount
intCols=DataTable.GetSheet(1).GetParameterCount
For i= 1 to intRows
 DataTable.SetCurrentRow i
 For j=1 to intCols
  If Datatable.Value(j,1)<>"" then
   msgbox Datatable.Value(j,1)
   end if
 Next
Next

To receive daily posted JOBS & Interview Questions
Just enter your email address below and click 'Submit'
Enter your email address:

Make sure to activate your subscription by clicking on the activation link sent to your email