Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
7.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
Statistic
Addressbook.multivalue.valueAtIndex
Returns the value for the given index.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
Addressbook | 3.1 | Yes | No | No | No | Yes |
Parameters
Parameter | Description | Example value |
---|---|---|
index | The index for the value to be returned. |
Result
Returns value or error.
Description
Returns the value for the given index.If the index argument is out of bounds, this method returns an error.
Examples
Queries first email of me:
$personID = MBS( "Addressbook.me" )
$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( "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
- Addressbook.me
- Addressbook.multivalue.count
- Addressbook.multivalue.identifierAtIndex
- Addressbook.multivalue.identifiers
- Addressbook.multivalue.insertValue
- Addressbook.multivalue.labelAtIndex
- Addressbook.multivalue.replaceLabelAtIndex
- Addressbook.multivalue.replaceValueAtIndex
- Addressbook.multivalue.valueForIdentifier
- Addressbook.multivalue.valueForLabel
- Addressbook.multivalue.values
- Addressbook.record.SetValueForProperty
- Addressbook.record.valueForProperty
Example Databases
Created 18th August 2014, last changed 26th February 2016
Addressbook.multivalue.setPrimaryIdentifier - Addressbook.multivalue.valueForIdentifier
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins