UserProperty (object)

<< Click to Display Table of Contents >>

UserProperty (object)

Access path: Application à UserProperties à Item

 1  Description

A UserProperty object represents one individual component of the user's address (for example, the street or the postal code).

An individual UserProperty object exists for each of these components. The number of these objects is constant, since you cannot create new address components.

 2  Access to the object

The individual UserProperty objects can be accessed solely through enumerating the elements of the Application.UserProperties collection. The type of this collection is UserProperties.

Example:

' Show the contents of the first address element (the name of the user)

MsgBox tm.Application.UserProperties.Item(1).Value

 3  Properties, objects, collections and methods

Properties:

Value (default property)

 

Objects:

Application Application

Parent UserProperties

Value (property)

Data type: String

Gets or sets the contents of the address component. The following example sets the company name of the user:

Sub Example()

 Set tm = CreateObject("TextMaker.Application")

 tm.UserProperties(smoUserDataCompany).Value = "ACME Corporation"

End Sub

Application (pointer to object)

Data type: Object

Returns the Application object.

Parent (pointer to object)

Data type: Object

Returns the parent object, i.e. UserProperties.