Xojo Conferences
XDCApr2018DenverUSA
MBSSep2018MunichEurope

MBS Xojo Addressbook Kit

ABRecordMB class:

Class ABRecordMB
ComputedProperty CompositeName As Text
Sub Get()
Returns an appropriate, human-friendly name for the record.
ComputedProperty CompositeNameDelimiter As Text
Sub Get()
The delimiter that should be used to separate name components. If the record has no first, middle and last name, or if the record is 0, then a default delimiter is returned.
ComputedProperty CreationDate As date
Sub Set()
convenience property for CreationDate
Sub Get()
convenience property for CreationDate
ComputedProperty ID As Integer
Sub Get()
Returns the unique ID of a record.
ComputedProperty IsGroup As Boolean
Sub Get()
ComputedProperty IsPerson As Boolean
Sub Get()
ComputedProperty ModificationDate As date
Sub Set()
convenience property for ModificationDate
Sub Get()
convenience property for ModificationDate
ComputedProperty Type As Integer
Sub Get()
Returns the type of a record. can be kABGroupType, kABPersonType or kABSourceType
ComputedProperty isSource As Boolean
Sub Get()
Const kABDateTimePropertyType = 4
Const kABDictionaryPropertyType = 5
Const kABGroupType = 1
Const kABIntegerPropertyType = 2
Const kABInvalidPropertyType = 0
Const kABMultiDateTimePropertyType = 260
Const kABMultiDictionaryPropertyType = 261
Const kABMultiIntegerPropertyType = 258
Const kABMultiRealPropertyType = 259
Const kABMultiStringPropertyType = 257
Const kABMultiValueMask = 256
Const kABPersonType = 0
Const kABPropertyInvalidID = -1
Const kABRealPropertyType = 3
Const kABRecordInvalidID = -1
Const kABSourceType = 2
Const kABStringPropertyType = 1
Function CompositeNameFormat() As integer
Returns the person-name display format to use for the given record. The appropriate "First, Last" or "Last, First" order for the contact depending on the detected locale of the contact's name. If the record has no first, middle and last name, or if the record is nil, then the Contacts Display Order preference is returned.
Sub Destructor()
Function RemoveValue(ABPropertyID as Integer, byref error as CFErrorMB) As Boolean
Removes the value of a record property.
Function SetValue(ABPropertyID as Integer, value as auto, byref error as CFErrorMB) As Boolean
Sets the value of a record property.
Function Value(propertyID as integer) As auto
Returns the value of a record property.
Property Handle As Integer
End Class




Links
MBS Xojo blog