Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / November 2005

Tip: Looking for answers? Try searching our database.

vbscript error with Repeating Tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike B - 25 Nov 2005 18:06 GMT
After searching for a while and trying different approaches I finally
found a way, that I was able to understand, to retrieve a cell on each
row in a repeating table.  My problem is that while the code works, in
that it displays the contents that I am looking for, I also get an
error Object required 'objTheRow'.  I am not sure why I am getting this
as it seems that everything works.  Could someone take a quick look at
my code and point out where I went wrong?

set LeaveType = XDocument.DOM.selectNodes("//my:blah")
for i=0 to LeaveType.length

  set objTheRow = LeaveType.item(i)
  msgbox objTheRow.selectSingleNode("my:blah").text
Next

Thanks,
Mike
Franck Dauché - 25 Nov 2005 18:22 GMT
Hi Mike,

Try: for i=0 to LeaveType.length-1

Regards,

Franck Dauché

> After searching for a while and trying different approaches I finally
> found a way, that I was able to understand, to retrieve a cell on each
[quoted text clipped - 13 lines]
> Thanks,
> Mike
Mike B - 28 Nov 2005 13:41 GMT
Bingo, thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.