Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Can we add two numbers in VB script without using Arithmatic operators
#4
Solved: 10 Years, 9 Months ago
try this below, simple way in QTP

Code:
DataTable.AddSheet("AddNumberwithoutArthOper").AddParameter "FirstNumber",iFirstNumber
DataTable.GetSheet("AddNumberwithoutArthOper").AddParameter "SecondNumber",iSecondNumber
DataTable.GetSheet("AddNumberwithoutArthOper").AddParameter "Sum", "=SUM(A1:B1)"
msgbox DataTable("Sum","AddNumberwithoutArthOper")

Let me know if you need further iNfo...

If you feel this answer solved your query, please mark the status as "solved"and click on "Give Reputation for this user" buuton in my post.
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: How Can we add two numbers in VB script without using Arithmatic operators - by supputuri - 06-16-2013, 02:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)