Community articlegetFormVersion method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.



Description

This method determines the XFDL version of a form. You can call this method on any form node that is in the XFDL namespace.

Method

   public int getFormVersion( ) throws UWIException;


Parameters

There are no parameters for this method.

Returns

An integer in the form of 0xMMmm0300, where MM is the major number and mm is the minor number. For example, a version 6.3 form would return: 0x06030300.

Example

The following method accepts a form node and returns a boolean that indicates whether the form is version 6.5 or higher.
   private static Boolean checkVersion(formNodeP theNode) throws Exception
   {
      if (theNode.getFormVersion() >= 0x06050300)
      {
         return(true);
      }
      else
      {
         return(false);
      }
   }


Parent topic:
FormNodeP class