The
Phone type is used to handle a phone number as well as its type (home, work, ...).
The characteristics of this variable can be defined and modified by several WLanguage properties.
This type of variable is used by the
Contact variables.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see
Declaring a variable.
// Dials the first professional phone number of a contact
tel is Phone
FOR EACH tel OF contact.Phone
IF tel.Type = phoneCellWork OR tel.Type = phoneWork THEN
tapiDialerCall(tel.Number)
RETURN
END
END
Remarks
Properties specific to the description of Phone variables
The following properties can be used to handle a phone number:
| | |
Property name | Type used | Effect |
---|
Label | Character string | Label for the custom types of phone numbers (optional). If the Type property does not correspond to the phoneCustom constant, the value of this property will be ignored. |
Number | Character string | Phone number. No formatting is performed. |
Type | Integer constant | |
Reinitialization
You can use
VariableReset to reset the content of a
Phone variable.