ListDialog.SetChecked
---------------------

Sets check state for a row.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [13.5](newinversion135.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "ListDialog.SetChecked"; Index; Value ) 

**MBS**( **"ListDialog.SetChecked";** /\* Sets check state for a row. \*/  
**$Index**; /\* The index from 0 to [ListDialog.ListCount](ListDialogListCount.md)-1. \*/   
**$Value**) /\* The new state.  
Pass 1 to check or 0 to uncheck.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The index from 0 to [ListDialog.ListCount](ListDialogListCount.md)-1. | $index |
| Value | The new state.   Pass 1 to check or 0 to uncheck. | 1 |

### Result

Returns OK or error.

### Description

Sets check state for a row.  
### Examples

Set checked state to 1 for third row:

 Set Variable \[ $r ; Value: MBS ("ListDialog.SetChecked"; 2; 1) \]  
### See also

- [ListDialog.GetChecked](ListDialogGetChecked.md)
- [ListDialog.GetCheckedTags](ListDialogGetCheckedTags.md)
- [ListDialog.ListCount](ListDialogListCount.md)
- [ListDialog.SetShowCheckboxes](ListDialogSetShowCheckboxes.md)

### Blog Entries

- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [List dialog with checkboxes](https://www.mbsplugins.de/archive/2023-10-20/List_dialog_with_checkboxes/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.5pr4](https://www.mbsplugins.de/archive/2023-10-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th October 2023 , last changed 14th October 2023

  
[ListDialog.SetCancelButtonValue](ListDialogSetCancelButtonValue.md) - [ListDialog.SetCloseDialogOnDoubleClick](ListDialogSetCloseDialogOnDoubleClick.md)

[HTML Version](ListDialogSetChecked.shtml)