Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Returns the number of entries in a multivalue list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Addressbook | 3.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
This function was deprecated. Use Contacts functions instead.
none
Returns count.
Query number of emails:
$personID = MBS( "Addressbook.me" )
$r = MBS( "Addressbook.record.valueForProperty"; $personID; "EmailProperty" )
$count = MBS( "Addressbook.multivalue.count")
Query all my URLs:
Set Variable [$personID; Value:MBS( "Addressbook.me")]
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]
Loop
Set Variable [$value; Value:MBS( "Addressbook.multivalue.valueAtIndex"; $index)]
Show Custom Dialog ["URL"; $value]
#next
Set Variable [$index; Value:$index + 1]
Exit Loop If [$index = $count]
End Loop
End If
This function checks for a license.
Created 18th August 2014, last changed 26th February 2016
Addressbook.multivalue.addValue - Addressbook.multivalue.identifierAtIndex