08-25-2011, 08:36 PM
Hi again,
Maybe you could try to make a cast of the index value, forcing it to be an integer:
Make sure the variable Gr is always an integer.
If this failes you could try this:
I don't know, but maybe the QTP is a little "picky" with the index values, and should be forced to be integers (even when you're treating it just like that). This last solution is the one I use, and it always has worked for me.
Hope this could help you.
Regards!
Luth
Maybe you could try to make a cast of the index value, forcing it to be an integer:
Code:
Set TableObj = Browser("Wisdom").Page("WisdomLogin").Frame("parent").WebTable("Document Type").SetTOProperty "index", cint(Gr*2+3)
Make sure the variable Gr is always an integer.
If this failes you could try this:
Code:
NumGr = Gr*2+3
Set TableObj = Browser("Wisdom").Page("WisdomLogin").Frame("parent").WebTable("Document Type").SetTOProperty "index", NumGr
I don't know, but maybe the QTP is a little "picky" with the index values, and should be forced to be integers (even when you're treating it just like that). This last solution is the one I use, and it always has worked for me.
Hope this could help you.
Regards!
Luth