Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Index number of tables
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi again,

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
Reply


Messages In This Thread
Changing Index number of tables - by mv8167 - 08-12-2011, 07:27 PM
RE: Changing Index number of tables - by luth - 08-17-2011, 04:57 PM
RE: Changing Index number of tables - by mv8167 - 08-17-2011, 07:12 PM
RE: Changing Index number of tables - by mv8167 - 08-24-2011, 02:01 AM
RE: Changing Index number of tables - by luth - 08-25-2011, 08:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,685 04-29-2017, 04:53 PM
Last Post: kowshik
  Page element keep changing chong67 4 4,620 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Upgraded QTP 11.0 to UFT 11.53, Object Index Properties are varying Raghava M 0 2,180 01-28-2015, 06:02 PM
Last Post: Raghava M
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 5,062 12-20-2013, 01:44 PM
Last Post: sshukla12
  Unable to select a combo item by value or index martinshort 2 3,567 08-26-2013, 07:55 PM
Last Post: sudhirzpatil

Forum Jump:


Users browsing this thread: 1 Guest(s)