Casting problem - InfoPath Dev
in

InfoPath Dev

Casting problem

Last post 02-13-2006 02:43 PM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-13-2006 07:22 AM

    Casting problem

    I have a InfoPath Text Box type Integer. On the OnAfterChange Event of this field I want to check if the value is > 10 .

    How can I do it with code in C#!!!!
    I get casting error.
  • 02-13-2006 02:43 PM In reply to

    I think you'll want to do something like this:

    if( Int32.Parse( thisXDocument.DOM.selectSingleNode( "_XPATH_" ).text ) > 10 )
    {
    //field is greater than 10
    }


    http://support.microsoft.com/?kbid=835454

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.