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

Dont break your head for small things. Just go for basic programmings for w3schools or any other E-Books.

Here i am giving the example required for you:

Code:
a=10
b=5
sumOfNumbers=sum(a,b)   'Here i am calling the sum function
MsgBox(sumOfNumbers)

Function sum(var1,var2)
    Dim temp
    temp=var1+var2
    sum=temp 'Here i am returning the value to the called function
End function

Let me know if you need any clarification here.

Thanks & Regards,
Uday.
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,675 11-21-2016, 04:22 PM
Last Post: Ankur
  Not able to execute script shanthalaAR 0 2,078 06-27-2015, 03:53 AM
Last Post: shanthalaAR
  How to Execute a testset from QC using OTA framework AutomationTester2011 12 52,575 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,105 04-26-2014, 11:42 PM
Last Post: shruthic
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,226 08-22-2013, 11:43 AM
Last Post: smartkarthi

Forum Jump:


Users browsing this thread: 1 Guest(s)