Platforms to show: All Mac Windows Linux Cross-Platform

ABRecordMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Addressbook MBS MacCocoa Plugin 13.1 Yes No No Yes, macOS only No
Function: The private constructor.

Feedback, Comments & Corrections

ABRecordMBS.removeValueForProperty(propertyName as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: Remove the value of a given property.
Notes:
Subsequent calls to valueForProperty on the same property will return nil.
Returns true if the value was removed successfully and false on any error.

Feedback, Comments & Corrections

ABRecordMBS.setValue(value as Variant, propertyName as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: 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
Notes:
Value can be Date, Integer, Double, Dictionary, MultiValueMBS/MutableMultiValueMBS or String.
Returns true if the value was set successfully

See also:

Feedback, Comments & Corrections

ABRecordMBS.setValue(value as Variant, propertyName as string, byref error as NSErrorMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Addressbook MBS MacCocoa Plugin 11.2 Yes No No Yes, macOS only No
Function: Set the value of a given property. The type of the value must match the property type.
Notes:
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:

Feedback, Comments & Corrections

ABRecordMBS.valueForProperty(PropertyName as string) as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Addressbook MBS MacCocoa Plugin 7.1 Yes No No Yes, macOS only No
Function: 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
Notes:
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.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo tutorial videos