Platforms to show: All Mac Windows Linux Cross-Platform

Back to ABGroupMBS class.

ABGroupMBS.addProperty(propertyName as string, type as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds property to all group records.
Example
call ABGroupMBS.addProperty "GroupWeight",1

Property name must be unique.
For types see typeOfProperty.
Returns the number of properties successfully added.

ABGroupMBS.properties as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns an array of property names.

Returns nil on any error.

ABGroupMBS.removeProperties(properties() as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes properties from all groups.

Returns the number of properties successfully removed.

ABGroupMBS.removeProperty(propertyName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes property from all groups

Returns the number of properties successfully removed.

ABGroupMBS.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 iOS Targets
shared method Addressbook MBS MacCocoa Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a search element object that searches for records of this type.

property: The name of the property to search on. It cannot be "".
label: The label name for a multivalue list. If property does not have multiple values, pass "". If property does have multiple values, pass "" to search all the values. By default, ABGroup records don't contain any multivalue list properties.
key: The key name for a dictionary. Pass "" if property is not a dictionary. If property is a dictionary, pass "" to search all keys. By default, ABGroup records don't contain any properties that are dictionaries.
value: What you're searching for. If "", the only supported value for comparison is kABEqual or kABNotEqual.
comparison: The type of comparison to perform and is an ABSearchComparison, such as kABEqual or kABPrefixMatchCaseInsensitive.

ABGroupMBS.typeOfProperty(propertyName as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the type of a given property.

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

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


The biggest plugin in space...