AddressBookData.Insert
From Xojo Documentation
This item was deprecated in version 2019r2. |
This method is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
Supported for all project types and targets.
Inserts NewValue identified by Label. Used to insert multi-value properties such as phone numbers, email addresses, physical addresses, and so forth.
Notes
The label should be any of these constants (or literals) defined on AddressBookData:
The following class constants can be used to specify the Label parameter of the Insert method.
Constant | Description |
---|---|
LabelHome | Home |
LabelHomeFax | Home Fax |
LabelMain | Main |
LabelMobile | Mobile phone |
LabelOther | Other |
LabelPager | Pager |
LabelWork | Work |
LabelWorkFax | Work Fax |
For anything other than phone numbers, the only valid labels are LabelHome, LabelWork, and LabelOther. Passing anything else will raise a RuntimeException. The Message property of the exception will explain the valid labels.
If the property being assigned a value is a custom property or a property that AddressBook the implementation does not know about, it will pass in the label given and not manipulate it in any way.