Platforms to show: All Mac Windows Linux Cross-Platform

Back to ABRecordMBS class.

ABRecordMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 13.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The private constructor.

ABRecordMBS.removeValueForProperty(propertyName 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
Remove the value of a given property.

Subsequent calls to valueForProperty on the same property will return nil.
Returns true if the value was removed successfully and false on any error.

ABRecordMBS.setValue(value as Variant, propertyName 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
Set the value of a given property. The type of the value must match the property type.
Example
dim a as ABAddressBookMBS
dim p as ABPersonMBS
// get a somehow
// get p somehow

if not p.setValue("My Company",a.kABOrganizationProperty) then
MsgBox "Failed to set field "+a.LocalizedPropertyOrLabel(a.kABOrganizationProperty)
end if

Value can be Date, Integer, Double, Dictionary, MultiValueMBS/MutableMultiValueMBS or String.
Returns true if the value was set successfully

See also:

ABRecordMBS.setValue(value as Variant, propertyName as string, byref error as NSErrorMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Set the value of a given property. The type of the value must match the property type.

Value can be Date, Integer, Double, Dictionary, MultiValueMBS/MutableMultiValueMBS or String.
Returns true if the value was set successfully

On Mac OS X 10.7 or later, we set the error property on any error.

See also:

ABRecordMBS.valueForProperty(PropertyName as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Addressbook MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the value of a given property.
Example
dim a as new ABAddressBookMBS // get addressbook
dim p as ABPersonMBS = a.owner // and find me

// read note
MsgBox p.valueForProperty(a.kABNoteProperty).StringValue

The type of the value depends on the property type.
Returns nil on any error.

Tip: Put the result in a variant, so you can see the type in the debugger. Emails for example can be a ABMultiValueMBS object while name is normally a string.

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


The biggest plugin in space...