I am trying to write a script in qtp like this
Public Function sayhi msgbox "hi" end Dim level0 dim count1 count1 = DataTable.GetSheet("Action1").GetRowCount msgBox count1 For counterVariable = 1 to count1 functionname = DataTable.value("methodnames","Action1") call functionname DataTable.GetSheet("Action1").SetCurrentRow(counterVariable) Next
Suppose the function name has the value say sayi. Can I use this value to call a function? as in the code "call functionname".
I know that it does not work, but how to do it?
source share