Show All

# Util Object

Provides utility methods that can be used with Microsoft Office InfoPath 2003 forms.

## Remarks

Note This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

## Using the Util object

Use the Util property of the XDocument object to create a Util object.

The Util object contains the following properties:

Property | Description
--- | ---
Date | Use this property to return a Date object, which provides several date-related methods.
Math | Use this property to return a Math object, which provides several math-related methods.

The Util object contains the following method:

Method | Description
--- | ---
Match | Indicates whether a string matches a specified pattern.

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp