Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling Financial Functions
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
You can use Excel formulas, in the QTP Data Table.

Bellow is the example:
'''-------------------------------------------------------------
Code:
DataTable("Formula", dtLocalSheet) = "=PV(10, 48, 200000)"
valPV = DataTable("Formula", dtLocalSheet)

DataTable("Formula", dtLocalSheet) = "=PMT(10, 48," & valPV &")"
valPMT = DataTable("Formula", dtLocalSheet)
Print "PV: " & valPV
Print "PMT: " & valPMT
'''-------------------------------------------------------------
Hope, this would help you! Smile

Thanks,
Reply


Messages In This Thread
Calling Financial Functions - by Raj20091 - 11-03-2009, 07:17 PM
RE: Calling Financial Functions - by milindsd - 11-04-2009, 10:53 AM
RE: Calling Financial Functions - by Raj20091 - 11-04-2009, 07:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inserting variable values into Descriptive Programming Functions eske99 2 3,510 12-18-2015, 01:47 PM
Last Post: vinod123
  calling QTP script from one to another krishnas.tester 3 6,726 11-12-2014, 10:32 AM
Last Post: vinod123
  Passing objects to Functions vinod.nhce 0 3,295 03-13-2014, 06:09 PM
Last Post: vinod.nhce
  vb script to stop execution of functions if conditions fail visitjaga 1 7,380 12-05-2013, 12:26 AM
Last Post: ravi.gajul
  calling stored procedure from Oracle borisk 3 6,446 03-19-2013, 12:41 PM
Last Post: gaveyom

Forum Jump:


Users browsing this thread: 2 Guest(s)