Xojo Conferences
XDCApr2018DenverUSA
MBSSep2018MunichEurope

MBS Xojo Addressbook Kit

ABMultiValueMB class:

Class ABMultiValueMB
ComputedProperty Count As Integer
Sub Get()
Returns the number of values in a multivalue property.
ComputedProperty PropertyType As Integer
Sub Get()
Returns the type of the values contained in a multivalue property. The type of the values contained in multiValue or kABInvalidPropertyType when multiValue is empty or contains values of different types.
Const kABMultiValueInvalidIdentifier = -1
Function AllValues() As auto()
Returns an array with the values in a multivalue property.
Sub Constructor(H as Integer, Retain as Boolean)
Sub Destructor()
Cleanup
Function FirstIndexOfValue(value as auto) As Integer
Returns the first location of a value in a multivalue property. Location of value within multiValue, -1 if value is not present in multiValue.
Function IdentifierAtIndex(Index as integer) As Integer
Returns the identifier of a value in a multivalue property.
Function IndexForIdentifier(Identifier as integer) As Integer
Returns the location (within a multivalue property) of a value with a given identifier.
Function LabelAtIndex(Index as integer) As Text
Returns the label for a value in a multivalue property.
Function MutableCopy() As ABMutableMultiValueMB
returns mutable copy
Function ValueAtIndex(Index as integer) As auto
Returns the value at a particular location within a multivalue property.
Note "About"
The ABMultiValue opaque type (whose objects are known as multivalues) implements a property that can have multiple values. All the contained values must be of the same type. Each value has a unique identifier and a nonunique label, which may be one of the provided labels or one defined by the user. For example, if a multivalue property is used to store phone numbers, there may be multiple work phone numbers. These have the same label, but different unique identifiers. Multivalue properties are immutable. To use mutable multivalue properties, see ABMutableMultiValue class.
Property Handle As Integer
End Class




Links
MBS Xojo Plugins