Platforms to show: All Mac Windows Linux Cross-Platform

Back to ABMutableMultiValueMBS class.

ABMutableMultiValueMBS.addValue(value as Variant, label as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds a value with its label.

Returns the identifier if successful, "" otherwise.

Note: No type checking is made when adding a value. But trying to set a multivalue property with a multivalue that doesn't have all its values of the same type will return an error.

Supported types: Date, Integer, String, Dictionary.

ABMutableMultiValueMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new ABMutableMultiValue object.

ABMutableMultiValueMBS.insertValue(value as Variant, label as string, index as UInt32) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Insert a value/label pair at a given index.

Returns the identifier if successful. "" otherwise

Note: No type checking is made when adding a value. But trying to set a multivalue property with a multivalue that doesn't have all its values of the same type will return an error

Index is zero based.

ABMutableMultiValueMBS.removeValueAndLabelAtIndex(index as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes a value/label pair at a given index

Returns true if successful.

Index is zero based.

ABMutableMultiValueMBS.replaceLabelAtIndex(index as UInt32, label as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Replaces a label at a given index.

Index is zero based.
Returns true on success.

ABMutableMultiValueMBS.replaceValueAtIndex(index as UInt32, value as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Replaces a value at a given index

Index is zero based.
Returns true on success.

ABMutableMultiValueMBS.setPrimaryIdentifier(identifier as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the primary value given its identifier.

Returns true if successful.

Some examples using this method:

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


The biggest plugin in space...