Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1653

Using Variables for calling a method in a class

$
0
0
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!!

Viewing all articles
Browse latest Browse all 1653

Trending Articles