Code:
Function sum(a,b)
c=a+b
msgbox c
End Function
m=datatable.GetRowCount
For i=1 to m step 1
datatable.SetCurrentRow(i)
a=datatable.Value(1,1)
msgbox a
b=datatable.Value(2,1)
msgbox b
Call sum(a,b)
Nextsorry guys i forgot to use a=cint(a)
b=cint(b)
now it is working as expected...
Thanks all...
Thread is closed..

