Community articleUFLGetFormVersion function
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Description

This function determines the XFDL version of a form.

Function

   r_u_long UFLGetFormVersion(
      formNodeP theFormNode
   );


Parameters

Table 1. Function parameters
ExpressionTypeDescription
theFormNodeformNodePAny form node that belongs to the XFDL namespace.


Returns

A long 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 function accepts a form node and returns a boolean that indicates whether the form is version 6.5 or higher.
   r_boolean checkVersion(formNodeP theNode)
   {
      if (UFLGetFormVersion(theNode) >= 0x06050300)
      {
         return(OK);
      }
      else
      {
         return(NOTOK);
      }
   }


Parent topic:
FormNodeP functions