ListDialog.SetSelectedTag
-------------------------

Sets which item is selected.

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

MBS( "ListDialog.SetSelectedTag"; Text ) 

**MBS**( **"ListDialog.SetSelectedTag";** /\* Sets which item is selected. \*/  
**$Text**) /\* The text to select.e.g. "1234" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The text to select. | "1234" |

### Result

Returns OK.

### Description

Sets which item is selected.  
You can preselect one or more items using this function.  
This can be a list if used with multiple selection.  
### See also

- [ListDialog.GetCheckedTags](ListDialogGetCheckedTags.md)
- [ListDialog.GetSelectedTag](ListDialogGetSelectedTag.md)
- [ListDialog.GetSelectedTitle](ListDialogGetSelectedTitle.md)
- [ListDialog.SetSelectedTitle](ListDialogSetSelectedTitle.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[ListDialog.SetSelectButtonValue](ListDialogSetSelectButtonValue.md) - [ListDialog.SetSelectedTitle](ListDialogSetSelectedTitle.md)

[HTML Version](ListDialogSetSelectedTag.shtml)