Community articleCheckValidFormats function
Added by IBM contributorIBM on August 15, 2011
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 function checks the format of either all items on the form or all items on a single page. It returns a list of items that have non valid formats.

Function

   Function CheckValidFormats() As Boolean


Parameters

There are no parameters for this function.

Returns

An array of nodes that represent items with non valid formats.

Example

The following function walks through the form and uses CheckValidFormats to determine which nodes have the correct format. This function assumes that you are passing in the root node of the form.
   Sub CheckFormats
 
      Dim theForm ' object
      Dim invalidItems ' IFormNodePList
      Dim theItem ' IFormNodeP
			Dim theReference ' String
      
      invalidItems = theForm.checkValidFormats();
      If invalidItems == Nothing Then
         Response.Write("All the items have valid formats."
      Else
         For Each theItem in invalidItems
            theReference = theItem.GetReferenceEx(vbNullString, Nothing, _ 
               Nothing, False)
         Response.Write("The item "theReference" has an invalid format".)
 
      End If
 
   End Sub


Parent topic:
FormNodeP functions