Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to associate Function Libraries, OR's during Run Time?
#5
Solved: 11 Years, 4 Months ago
Hi,

Use following code example for excuting function from library.

Code:
'Use executefile function to load library files.
'Example:
executefile "C:\Documents and
Settings\tsheth\Desktop\Sample123.vbs"
x=50
y=50
result=Sum(x,y)
msgbox(result)


'Code in External Library file(.vbs file).
Public function Sum(a,b)
Dim sum
sum=a+b
Sum=sum
End Function
Reply


Messages In This Thread
RE: How to associate Function Libraries, OR's during Run Time? - by Tarik Sheth - 09-13-2009, 11:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recogonising object during run time Lavanya N 2 3,727 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,175 08-27-2015, 10:18 AM
Last Post: supputuri
  Calling a function in a Test Script from a function library anupam4j 3 6,127 06-26-2015, 12:31 AM
Last Post: babu123
  QTP Takes Long time to Run prasaad44 4 4,889 04-10-2014, 01:53 AM
Last Post: prasaad44
  Getting run error passing a Frame into a user defined function!!! sepgs2004 1 2,834 10-14-2013, 06:37 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)