Micro Focus QTP (UFT) Forums
How to put a JTable in a variable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to put a JTable in a variable (/Thread-How-to-put-a-JTable-in-a-variable)



How to put a JTable in a variable - SAKDOSS - 07-31-2009

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")