Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling Financial Functions
#2
Solved: 12 Years, 11 Months, 1 Week 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 4,107 12-18-2015, 01:47 PM
Last Post: vinod123
  calling QTP script from one to another krishnas.tester 3 7,477 11-12-2014, 10:32 AM
Last Post: vinod123
  Passing objects to Functions vinod.nhce 0 3,653 03-13-2014, 06:09 PM
Last Post: vinod.nhce
  vb script to stop execution of functions if conditions fail visitjaga 1 8,012 12-05-2013, 12:26 AM
Last Post: ravi.gajul
  calling stored procedure from Oracle borisk 3 7,260 03-19-2013, 12:41 PM
Last Post: gaveyom

Forum Jump:


Users browsing this thread: 1 Guest(s)