Micro Focus QTP (UFT) Forums

Full Version: How to put a JTable in a variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have got a JTable :
Code:
JavaWindow("Log Message").JavaTable("MessageTable")

I would like to put it in a variable, in order to use it like that :
Code:
a = JavaWindow("Log Message").JavaTable("MessageTable")
a.GetCellData(0, 2)

Unfortunately it doesn't work.


Does anybody have an idea ?
Ok I found it sorry.

FYI :
Code:
Set a = JavaWindow("Log Message").JavaTable("MessageTable")