Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Variables for calling a method in a class
#1
Not Solved
Hi,

I am unable to use variable to call a method in a class. Please see the below code.

Code:
Class Abc
    Function FGH()
      ...
    End Function
End Class

Set abc=New ABC
sFunction="FGH"
1.abc.sFunction
2."abc"&"."sFunction
I have tried the above two scenarios, but both fails in UFT. Please guide me how to call this function when it is stored in a variable

Appreciate the time in advance!!
Reply


Messages In This Thread
Using Variables for calling a method in a class - by chitu576 - 12-05-2014, 12:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object Class Name has changed in New OS(2012 R2) Raj Aryan Singh 0 791 12-12-2019, 03:57 PM
Last Post: Raj Aryan Singh
  Runtime variables details amitmanekar91 0 2,264 03-07-2015, 08:27 PM
Last Post: amitmanekar91
  Environment variables _JAVA_OPTIONS and JAVA_TOOL_OPTIONS is preventing java app abhiagarwal42 0 6,498 11-05-2012, 04:21 PM
Last Post: abhiagarwal42
MyBB Must declare scalar variables error codegizmo 0 2,128 10-18-2012, 02:32 AM
Last Post: codegizmo
  Debugger loses track of values in Variables deepaksporty 1 4,269 05-26-2012, 01:17 AM
Last Post: Archens

Forum Jump:


Users browsing this thread: 2 Guest(s)