Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Returns the value for the given index.

Component Version macOS Windows Linux Server iOS SDK
Addressbook 3.1 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes


This function was deprecated. Use Contacts functions instead.

MBS( "Addressbook.multivalue.valueAtIndex"; index )   More


Parameter Description Example
index The index for the value to be returned.


Returns value or error.


Returns the value for the given index.
If the index argument is out of bounds, this method returns an error.


Queries first email of me:

$personID = MBS( "" )
$r = MBS( "Addressbook.record.valueForProperty"; $personID; "EmailProperty" )
$count = MBS( "Addressbook.multivalue.count")
$email = MBS( "Addressbook.multivalue.valueAtIndex"; 0)

Query all my URLs:

Set Variable [$personID; Value:MBS( "")]
Set Variable [$Urls; Value:MBS( "Addressbook.record.valueForProperty"; $personID; "URLsProperty")]
Set Variable [$count; Value:MBS( "Addressbook.multivalue.count")]
If [$count > 0]
    #for loop
    Set Variable [$index; Value:0]
        Set Variable [$value; Value:MBS( "Addressbook.multivalue.valueAtIndex"; $index)]
        Show Custom Dialog ["URL"; $value]
        Set Variable [$index; Value:$index + 1]
        Exit Loop If [$index = $count]
    End Loop
End If

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 26th February 2016

Addressbook.multivalue.setPrimaryIdentifier - Addressbook.multivalue.valueForIdentifier