Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Execute Functions
#2
Solved: 11 Years, 4 Months ago
Hi Tapan,

Put your function in a function library and associate this library to your script. Then in your script, lets assume you have two variables that you wish to be added together, variable1 and variable2. To do this just add the following line in your code -

Code:
call sum (variable1,variable2)


but if you wish to check the answer -
Code:
variable3 = sum(variable1,variable2)
msgbox variable3


Hope this helps,
Brian
Reply


Messages In This Thread
How to Execute Functions - by tapandalal - 10-23-2008, 07:27 AM
RE: How to Execute Functions - by Brian3 - 10-23-2008, 12:21 PM
RE: How to Execute Functions - by tapandalal - 10-23-2008, 06:40 PM
RE: How to Execute Functions - by anemuday - 10-23-2008, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Execute button of putton won't be clicke automaticly in UFT (VB) MarUFT 3 2,662 11-21-2016, 04:22 PM
Last Post: Ankur
  Not able to execute script shanthalaAR 0 2,074 06-27-2015, 03:53 AM
Last Post: shanthalaAR
  How to Execute a testset from QC using OTA framework AutomationTester2011 12 52,508 01-21-2015, 09:22 PM
Last Post: karthik_sanakran
  Is there a possible way to execute sql in QTP using 'WITH' clause shruthic 0 3,102 04-26-2014, 11:42 PM
Last Post: shruthic
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,218 08-22-2013, 11:43 AM
Last Post: smartkarthi

Forum Jump:


Users browsing this thread: 1 Guest(s)