ScriptWorkspace.SelectedLines
-----------------------------

Queries selected line numbers.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ScriptWorkspace](component_ScriptWorkspace.md) | [10.0](newinversion100.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ScriptWorkspace.SelectedLines" { ; Ranges } ) 

**MBS**( **"ScriptWorkspace.SelectedLines";** /\* Queries selected line numbers. \*/  
**$Ranges**) /\* Optional; Whether to return list with ranges.  
Pass 1 for ranges or 0 for just line numbers.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Ranges | Whether to return list with ranges.   Pass 1 for ranges or 0 for just line numbers. | 1 | Optional |

### Result

Returns list or error.

### Description

Queries selected line numbers.  
If ranges is 1, we return ranges like "3-5¶7¶10-12", otherwise we return "3¶4¶5¶7¶10¶11¶12".  
### See also

- [ScriptWorkspace.ScrollToLine](ScriptWorkspaceScrollToLine.md)
- [ScriptWorkspace.SelectedLine](ScriptWorkspaceSelectedLine.md)
- [ScriptWorkspace.SelectGroup](ScriptWorkspaceSelectGroup.md)
- [ScriptWorkspace.SelectLine](ScriptWorkspaceSelectLine.md)
- [ScriptWorkspace.SelectLines](ScriptWorkspaceSelectLines.md)

### Release notes

- **Version 10.0**
    - Added [ScriptWorkspace.SelectedLines](https://www.mbsplugins.eu/ScriptWorkspaceSelectedLines.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 9.6pr2](https://www.mbsplugins.de/archive/2019-12-10/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 4th December 2019 , last changed 4th December 2019

  
[ScriptWorkspace.SelectedLine](ScriptWorkspaceSelectedLine.md) - [ScriptWorkspace.SetBackgroundColor](ScriptWorkspaceSetBackgroundColor.md)

[HTML Version](ScriptWorkspaceSelectedLines.shtml)