Window.Scrollbar.getVerticalPosition
------------------------------------

Queries current value for vertical scrollbar.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [6.2](newinversion62.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Window.Scrollbar.getVerticalPosition"; WindowRef ) 

**MBS**( **"Window.Scrollbar.getVerticalPosition";** /\* Queries current value for vertical scrollbar. \*/  
**$WindowRef**) /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |

### Result

Returns value or error.

### Description

Queries current value for vertical scrollbar.  
Added Windows and iOS support for version 8.5.  
  
Unit is points on macOS as distance from top.  
For Windows, the maximum is 65535, so the position is a fraction of that.  
### See also

- [WebView.Scrollbar.getVerticalPosition](WebViewScrollbargetVerticalPosition.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.Scrollbar.getHorizontalPosition](WindowScrollbargetHorizontalPosition.md)
- [Window.Scrollbar.getVerticalMaximum](WindowScrollbargetVerticalMaximum.md)

### Example Databases

- [Window/Window Scrollbar Position](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Window%20Scrollbar%20Position.shtml#1293FieldAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 6.2pr6](https://www.mbsplugins.de/archive/2016-04-29/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th April 2016 , last changed 12nd April 2022

  
[Window.Scrollbar.getVerticalMaximum](WindowScrollbargetVerticalMaximum.md) - [Window.Scrollbar.set](WindowScrollbarset.md)

[HTML Version](WindowScrollbargetVerticalPosition.shtml)