Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting unexpected result for sum operation
#2
Solved: 12 Years, 10 Months, 3 Weeks ago
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)
Next


sorry guys i forgot to use a=cint(a)
b=cint(b)
now it is working as expected...


Thanks all...
Thread is closed..


Messages In This Thread
RE: Getting unexpected result for sum operation - by venkatbatchu - 11-04-2009, 09:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Testing and Unexpected Server Errors zunebuggy 0 1,539 01-24-2018, 11:41 PM
Last Post: zunebuggy
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,867 05-05-2015, 11:40 PM
Last Post: babu123
  Excel operation - to find usedrange of rows & col pooja 1 10,298 02-19-2015, 04:06 AM
Last Post: supputuri
  Capturing the exact time when an operation is performed. Dilliz 2 3,651 01-09-2014, 03:30 PM
Last Post: Dilliz
  How to capture operation such as hovering a mouse nikhilcogni 5 5,380 03-23-2013, 11:17 AM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)