<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115765.aspx</link><pubDate>Thu, 09 Mar 2017 16:17:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115765</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115765</wfw:commentRss><description>Thanks that worked, appreciate your assistance on this.</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115750.aspx</link><pubDate>Wed, 08 Mar 2017 20:05:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115750</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115750</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes - that is possible. The code on your button&amp;nbsp;would look something like this, based off the Test template you attached earlier:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Get value for company to delete&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim company As String = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:SELECTDELETE&amp;quot;, NamespaceManager).Value&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Get nodes matched on company&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nodesToDelete As XPathNodeIterator = MainDataSource.CreateNavigator().Select(String.Format(&amp;quot;/my:myFields/my:group3/my:group4[my:COMPANY = &amp;#39;{0}&amp;#39;]&amp;quot;, company), NamespaceManager)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;create list for storing nodes we will delete - DeleteSelf() directly on the node within the loop will cause it to break.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nodeList As System.Collections.ArrayList = New System.Collections.ArrayList()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each nodeToDelete As XPathNavigator In nodesToDelete&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeList.Add(nodeToDelete.Clone())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each nodeToDelete As XPathNavigator In nodeList&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeToDelete.DeleteSelf()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115747.aspx</link><pubDate>Wed, 08 Mar 2017 15:20:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115747</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115747</wfw:commentRss><description>Unfortunately i am not committed to vb.net. My original end goal was essentially to populate the SELECTDELETE drop down list with a list of Company names. Once the  the end user selected a company name the DELETEROW would then be flagged with the word &amp;quot;delete&amp;quot; for the VB script to use and determine the node ranges to delete.

I think im over complicating things this way and thought maybe i can omit the DELETEROW field and simply have a script identify the company name selected in the SELECTDELETE drop down list and delete any instance of the same company name found on form. Is this possible? Thanks again in advance</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115736.aspx</link><pubDate>Tue, 07 Mar 2017 23:40:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115736</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115736.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115736</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Sorry your posts got caught in the moderation queue. The basic steps to run your code in debug should work no matter which version of InfoPath you are using - mark a break point in the code and start from the code editor instead of from preview. The XPath you pasted - //COMPANY[@SELECTDELETE] - appears to be invalid? You don&amp;#39;t have a SELECTDELETE attribute on the COMPANY node in the main data source &amp;amp; you are missing your namespace prefixes. &lt;/p&gt;&lt;p&gt;Are you committed to VB.NET?&amp;nbsp;What is your&amp;nbsp;end goal here - the user will mark the rows they wish to delete? Using the&amp;nbsp;DELETEROW field? I&amp;nbsp;can put together a quick sample tomorrow, but would&amp;nbsp;prefer to use C#....&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115735.aspx</link><pubDate>Tue, 07 Mar 2017 21:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115735</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115735</wfw:commentRss><description>Hilary

i looked up the link your provided but wasn&amp;#39;t able to figure it out since i seem to be using a different version of VSTA

is there any other way for me to edit the code below to only retrieve the firstGroup2NodeNav and the
lastGroup2NodeNav nodes based on a what the end user selects off a dropdown list box?

I was trying to familiarize myself with xpath syntax and tried to use
//COMPANY[@SELECTDELETE] but that doesnt seem to work

===================================================
Public Sub CTRL686_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
            &amp;#39; Write your code here.
            &amp;#39; Retrieve a reference to the Main DOM
            Dim root As XPathNavigator = MainDataSource.CreateNavigator()

            &amp;#39; Count the amount of group2 nodes
            Dim iter As XPathNodeIterator = root.Select( _
           &amp;quot;/my:myFields/my:group3/my:group4&amp;quot;, _
           NamespaceManager)
            Dim group2NodesCount As Integer = iter.Count

            &amp;#39; Retrieve the first group2 node
            Dim firstGroup2NodeNav As XPathNavigator = _
           root.SelectSingleNode(&amp;quot;/my:myFields/my:group3/my:group4[1]&amp;quot;, _
           NamespaceManager)

            &amp;#39; Retrieve the last group2 node
            Dim lastGroup2NodeNav As XPathNavigator = _
           root.SelectSingleNode(&amp;quot;/my:myFields/my:group3/my:group4[&amp;quot; &amp;amp; _
           group2NodesCount.ToString() &amp;amp; &amp;quot;]&amp;quot;, _
           NamespaceManager)

            &amp;#39; Delete the range of nodes from the first to the last group2 nodes
            firstGroup2NodeNav.DeleteRange(lastGroup2NodeNav)
            &amp;#39;

        End Sub</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115691.aspx</link><pubDate>Fri, 24 Feb 2017 15:38:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115691</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115691.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115691</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Run your code in debug so you can see what is going on - here&amp;#39;s a &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx" target="_blank"&gt;post&lt;/a&gt; on how to do that. My guess is that &amp;quot;group4&amp;quot; doesn&amp;#39;t have a value of &amp;quot;delete&amp;quot;. &lt;/p&gt;</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115689.aspx</link><pubDate>Fri, 24 Feb 2017 15:20:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115689</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115689</wfw:commentRss><description>&lt;p&gt;Thanks Hilary&lt;/p&gt;&lt;p&gt;I looked at the code and tested it and it worked. However when i included the IF Statement which gave me no errors nothing seems to happen. I created 2 if statements to test out and both gave no results. Im wondering if im doing the syntax all wrong.&lt;/p&gt;&lt;p&gt;Public Sub CTRL752_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Write your code here.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Retrieve a reference to the Main DOM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim root As XPathNavigator = MainDataSource.CreateNavigator()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Ist attempt&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Dim GetValue As Object&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;GetValue = &amp;quot;DELETE&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;If GetValue = (&amp;quot;//my:myFields/my:group3/my:group4/my:DELETEROW&amp;quot;) Then&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;2nd attempt&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fieldValue As String = MainDataSource.CreateNavigator().SelectSingleNode( _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;/my:myFields/my:group3/my:group4&amp;quot;, NamespaceManager).Value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If fieldValue = &amp;quot;delete&amp;quot; Then&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Count the amount of group2 nodes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim iter As XPathNodeIterator = root.Select( _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;/my:myFields/my:group3/my:group4&amp;quot;, _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamespaceManager)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim group2NodesCount As Integer = iter.Count&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Retrieve the first group2 node&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim firstGroup2NodeNav As XPathNavigator = _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/my:myFields/my:group3/my:group4[1]&amp;quot;, _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamespaceManager)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Retrieve the last group2 node&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim lastGroup2NodeNav As XPathNavigator = _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/my:myFields/my:group3/my:group4[&amp;quot; &amp;amp; _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group2NodesCount.ToString() &amp;amp; &amp;quot;]&amp;quot;, _&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NamespaceManager)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39; Delete the range of nodes from the first to the last group2 nodes&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstGroup2NodeNav.DeleteRange(lastGroup2NodeNav)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115675.aspx</link><pubDate>Wed, 22 Feb 2017 23:07:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115675</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115675</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry for the delay, for some reason your replies are ending up in the moderation queue. I had to add some additional SPAM controls after a recent attack and seem to be getting some false positives on moderation. So - if you are using IP 2013, that means you are using Visual Studio 2012? I think you may be following code samples for VB script, not VB.NET. This code sample may help you out: &lt;a href="http://www.bizsupportonline.net/infopath2007/programmatically-delete-all-rows-repeating-table-infopath.htm"&gt;http://www.bizsupportonline.net/infopath2007/programmatically-delete-all-rows-repeating-table-infopath.htm&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115667.aspx</link><pubDate>Wed, 22 Feb 2017 16:14:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115667</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115667</wfw:commentRss><description>Hi Hilary

I am currently using Infopath Designer 2013</description></item><item><title>Re: Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115664.aspx</link><pubDate>Wed, 22 Feb 2017 15:28:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115664</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115664</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What version of InfoPath are you using?&lt;/p&gt;</description></item><item><title>Request for assistance on VB to delete row on repeating table based on fixed value</title><link>https://www.infopathdev.com:443/forums/thread/115661.aspx</link><pubDate>Tue, 21 Feb 2017 23:44:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115661</guid><dc:creator>blkmagik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115661</wfw:commentRss><description>Hello

Is it possible to assign a vb scrip to a button  that will delete all rows in a repeating table based on a fixed value
Ive tried messing around with the vb script but im constantly getting erorrs. 

So far i have

Dim rowList
rowList = XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:group3/my:group4&amp;quot;)
For Each row In rowList
Dim field1Value 
field1Value = row.selectSingleNode(&amp;quot;my:DELETEROW&amp;quot;).text 
     If (field1Value = &amp;quot;false&amp;quot;) Then 
          row.parentNode.removeChild(row) 
     End If 
Next

I am getting a variable deceleration and protection level errors when i try to debug the core.

Thanks in advance</description></item></channel></rss>