Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Addressbook.multivalue.count

Returns the number of entries in a multivalue list.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Addressbook 3.1 Yes No Yes, macOS only No Yes

MBS( "Addressbook.multivalue.count" )

Parameters

none

Result

Returns count.

Description

Returns the number of entries in a multivalue list.

Examples

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

See also

Example Databases


Addressbook.multivalue.addValue   -   Addressbook.multivalue.identifierAtIndex

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos