ScriptWorkspace.ScrollToLine
----------------------------

Scrolls to line to make it visible.

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

MBS( "ScriptWorkspace.ScrollToLine"; Line ) 

**MBS**( **"ScriptWorkspace.ScrollToLine";** /\* Scrolls to line to make it visible. \*/  
**$Line**) /\* The new line number.  
If negative, will be relative to end.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Line | The new line number.   If negative, will be relative to end. | 10 |

### Result

Returns OK or error.

### Description

Scrolls to line to make it visible.  
Line number can be be negative to select a line relative to end of script.  
### Examples

Scrolls to last line:

 MBS ( "ScriptWorkspace.ScrollToLine"; -1 )  
### See also

- [ScriptWorkspace.ScrollToSelection](ScriptWorkspaceScrollToSelection.md)
- [ScriptWorkspace.SelectedLine](ScriptWorkspaceSelectedLine.md)
- [ScriptWorkspace.SelectedLines](ScriptWorkspaceSelectedLines.md)
- [ScriptWorkspace.SelectLine](ScriptWorkspaceSelectLine.md)
- [ScriptWorkspace.SelectLines](ScriptWorkspaceSelectLines.md)

### Release notes

- **Version 9.0**
    - Added [ScriptWorkspace.ScrollToLine](http://www.mbsplugins.eu/ScriptWorkspaceScrollToLine.shtml) and [ScriptWorkspace.ScrollToSelection](http://www.mbsplugins.eu/ScriptWorkspaceScrollToSelection.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 8.6pr5](https://www.mbsplugins.de/archive/2018-12-23/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 20th December 2018 , last changed 20th December 2018

  
[ScriptWorkspace.ScriptsVisible](ScriptWorkspaceScriptsVisible.md) - [ScriptWorkspace.ScrollToSelection](ScriptWorkspaceScrollToSelection.md)

[HTML Version](ScriptWorkspaceScrollToLine.shtml)