Application.Name Property

InfoPath Developer Reference

A read-only property that returns a string containing the name of the Microsoft Office InfoPath 2007 application. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Name

expression   An expression that returns a Application object.

Return Value
String

Remarks

The name of the application does not contain the version number. To obtain the version number of an application, use the Version property of the Application object.

Security Level 0: Can be accessed without restrictions.

Example

In the following example, the Alert method of the UI object, accessed through the XDocument object, is used to display a message box that indicates the name of the application:

JScript
  XDocument.UI.Alert("Application name: " + Application.Name);

See Also