The
Contact type is used to define the advanced characteristics of a contact found in the phone book.
The characteristics of this contact can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Adds a phone number to the contact named "John Doe"
arrContact is array of Contact = ContactList()
IF NOT ErrorOccurred THEN
c is Contact
FOR EACH c OF arrContact
IF c.LastName ~= " Doe " _AND_ c.FirstName ~= " John "
tel is Phone
tel.Number = " 0467010203 "
tel.Type = phoneHome
Add(c.Phone, tel)
ContactModify(c)
RETURN
END
END
END
Remarks
Properties specific to the description of Contact variables
The following properties can be used to handle a phone contact:
| | |
Property name | Type used | Effect |
---|
Address | Array of Address | List of postal addresses of contact. |
DisplayedName | Character string | Name of contact as it must be displayed on the phone (in the list of contacts or when receiving a call for example). This name is automatically build from the information given for the contact, it cannot be modified. Typically, the displayed name corresponds to the concatenation of the first name and family name. If this information was not specified for the contact, the displayed name can correspond to the email address or to the phone number of the contact. This property is read-only. |
Email | Array of EmailAddress | List of email addresses of contact. |
Event | Array of Event | List of events associated with the contact. |
Favorite | Boolean | - True if the contact is found in the list of favorites,
- False otherwise.
|
FirstName | Character string | First name of the contact. |
ID | Integer | Contact identifier. Caution: This property is read-only.. |
InstantMessaging | Array of InstantMessaging | List of addresses of instant messaging of the contact. |
LastName | Character string | Family name of the contact. |
Note | Array of character strings | List of notes associated with the contact. |
Phone | Array of Phone | List of phone numbers of the contact. |
SIP | Array of SIPAddress | List of SIP addresses of the contact. |
Source | Array of ContactSource | List of contact sources (Google, Exchange, Facebook accounts) to which the contact belongs. |
WebSite | Array of WebAddress | List of Web addresses of contact. |