Platforms to show: All Mac Windows Linux Cross-Platform

ABPersonMBS.addProperty(propertyName as string, type as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: Adds property to all people records.
Example:
dim p as ABPersonMBS
// get a person

call p.addProperty "Distance",1
Notes:
Property name must be unique.
For types see typeOfProperty.
Returns the number of properties successfully added.

Feedback, Comments & Corrections

ABPersonMBS.properties as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 11.2 Yes No No Yes, macOS only No
Function: Returns an array of property names.
Notes: Returns an empty array on any error.

Feedback, Comments & Corrections

ABPersonMBS.removeProperties(properties() as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: Removes properties from all people
Notes: Returns the number of properties successfully removed.

Feedback, Comments & Corrections

ABPersonMBS.removeProperty(propertyName as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: Removes property from all people
Notes: Returns the number of properties successfully removed.

Feedback, Comments & Corrections

ABPersonMBS.searchElementForProperty(PropertyName as string, Label as string, Key as string, value as Variant, comparison as Integer) as ABSearchElementMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Returns a search element object that specifies a query for records of this type.
Notes:
property: The name of the property to search on, such as kABAddressProperty or kABLastNameProperty. This name cannot be "".
label: The label name for a multivalue list, such as kABAddressHomeLabel, kABPhoneWorkLabel, or a user-specified label, such as Summer Home. If the specified property does not have multiple values, pass "". If the specified property does have multiple values, pass "" to search all the values.
key: The key name for a dictionary, such as kABAddressCityKey or kABAddressStreetKey. If the specified property is not a dictionary, pass "". If the specified property is a dictionary, pass nil to search all keys.
value: What you're searching for. If nil, then the only supported value for comparison is kABEqual or kABNotEqual.
comparison: The type of comparison to perform, such as kABEqual or kABPrefixMatchCaseInsensitive.

Feedback, Comments & Corrections

ABPersonMBS.typeOfProperty(propertyName as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: Returns the type of a given property.
Notes:
Possible values:

const kABMultiValueMask = &h100
const kABErrorInProperty = &h0
const kABStringProperty = &h1
const kABIntegerProperty = &h2
const kABRealProperty = &h3
const kABDateProperty = &h4
const kABArrayProperty = &h5
const kABDictionaryProperty = &h6
const kABDataProperty = &h7
const kABMultiStringProperty = kABMultiValueMask + kABStringProperty
const kABMultiIntegerProperty = kABMultiValueMask + kABIntegerProperty
const kABMultiRealProperty = kABMultiValueMask + kABRealProperty
const kABMultiDateProperty = kABMultiValueMask + kABDateProperty
const kABMultiArrayProperty = kABMultiValueMask + kABArrayProperty
const kABMultiDictionaryProperty = kABMultiValueMask + kABDictionaryProperty
const kABMultiDataProperty = kABMultiValueMask + kABDataProperty

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCocoa Plugin.

The biggest plugin in space...




Links
MBS Xojo blog