CurrentView.SelectText is not working - InfoPath Dev
in

InfoPath Dev

CurrentView.SelectText is not working

Last post 04-28-2015 01:07 PM by montesfco. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-28-2015 01:07 PM

    CurrentView.SelectText is not working

     I want to select the text in a field but I cannot make it work.  I found this code in Microsoft dev center but I cannot make it work.  How and when CreateNavigator, NamespaceManager and CurrentView are declared? https://msdn.microsoft.com/en-us/library/office/aa944234.aspx 

     

     

    ' Create XPathNavigator and select field.

     

     

    Dim textNode As Xml.XPath.XPathNavigator = CreateNavigator().SelectSingleNode("/my:myFields/my:field1", NamespaceManager)

    ' Select text in specified field.

    CurrentView.SelectText(textNode, "CTRL2")

     

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.