Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i call a function which is written in a class?
#1
Not Solved
Hi,
I have a one class ,in that having 2 functions .How can i call that 2 functions.
Ex.
Code:
Class Add()

function Max1()

end function

Function Min()

end function

end class

Regards
Madhu
Reply
#2
Not Solved
Hi Madhu,
Inclued the vbs file in resources and use Add.functionname to access that function.
Reply
#3
Not Solved
Still have to intantiate the class.

Code:
dim myclass:set myclass = new Ex.Class
myclass.Add
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,814 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Calling a function in a Test Script from a function library anupam4j 3 6,131 06-26-2015, 12:31 AM
Last Post: babu123
  Not able to call the function kathirvelnagaraj 1 2,618 01-06-2015, 07:24 PM
Last Post: kathirvelnagaraj
  Drop down list class is a link thotamurali 2 4,199 08-22-2014, 05:48 PM
Last Post: thotamurali
  "qtp.launch" throwing "class not registered" error auto_tester 0 3,162 08-13-2013, 10:52 PM
Last Post: auto_tester

Forum Jump:


Users browsing this thread: 1 Guest(s)