Addressbook.multivalue.valueForLabel
------------------------------------

Returns value for label.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Addressbook](component_Addressbook.md) | [6.1](newinversion61.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

### Deprecated

This function was [deprecated](deprecated.md). Use [Contacts](component_Contacts.md) functions instead.

MBS( "Addressbook.multivalue.valueForLabel"; Label ) 

**MBS**( **"Addressbook.multivalue.valueForLabel"** /\* Returns value for label. \*/  
**$Label**) /\* The label to query. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Label | The label to query. | $label |

### Result

Returns value or error.

### Description

Returns value for label.  
### Examples

Shows different emails:

 Set Variable \[$personID ; Value:"637FA922-7A2B-4F9A-BFA3-023253D4A3D5:ABPerson"\]  
Set Variable \[$r ; Value:MBS ( "[Addressbook.record.valueForProperty](AddressbookrecordvalueForProperty.md)"; $personID ; "EmailProperty" )\]  
Set Variable \[$w ; Value:MBS ( "Addressbook.multivalue.valueForLabel"; "EmailWorkLabel" )\]  
Set Variable \[$h ; Value:MBS ( "Addressbook.multivalue.valueForLabel"; "EmailHomeLabel" )\]  
Set Variable \[$o ; Value:MBS ( "Addressbook.multivalue.valueForLabel"; "OtherLabel" )\]  
Show Custom Dialog \["Emails"; "Work email: " &amp; $w &amp; ¶ &amp; "Home email: " &amp; $h &amp; ¶ &amp; "Other email: " &amp; $o \]  
\# there may be more than 3 labels!   
### See also

- [Addressbook.multivalue.indexForLabel](AddressbookmultivalueindexForLabel.md)
- [Addressbook.multivalue.labelAtIndex](AddressbookmultivaluelabelAtIndex.md)
- [Addressbook.multivalue.valueAtIndex](AddressbookmultivaluevalueAtIndex.md)
- [Addressbook.multivalue.valueForIdentifier](AddressbookmultivaluevalueForIdentifier.md)
- [Addressbook.multivalue.values](Addressbookmultivaluevalues.md)
- [Addressbook.record.valueForProperty](AddressbookrecordvalueForProperty.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.1pr4](https://www.mbsplugins.de/archive/2016-03-03/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th February 2016 , last changed 26th February 2016

  
[Addressbook.multivalue.valueForIdentifier](AddressbookmultivaluevalueForIdentifier.md) - [Addressbook.multivalue.values](Addressbookmultivaluevalues.md)

[HTML Version](AddressbookmultivaluevalueForLabel.shtml)