VerticalScrollPosition

Description

The position of the scroll box in the vertical scroll bar. Use VerticalScrollMaximum with VerticalScrollPosition to synchronize vertical scrolling in multiple DataWindow objects.

Applies to

DataWindows

Syntax

PowerBuilder dot notation:

dw_control.Object.DataWindow.VerticalScrollPosition

Describe and Modify argument:

"DataWindow.VerticalScrollPosition { = scrollvalue }"

Parameter

Description

scrollvalue

A long specifying the position of the scroll box in the vertical scroll bar of the DataWindow

Examples

Example 1

string spos1
spos1 = dw1.Object.DataWindow.VerticalScrollPosition

Example 2

string spos1, smax, sscroll, modstring
spos1 = & 
   dw1.Describe("DataWindow.VerticalScrollPosition")
smax = & 
   dw1.Describe("DataWindow.VerticalScrollMaximum")
sscroll = String(Long(smax)/2)
modstring = "DataWindow.VerticalScrollPosition=" + &
   sscroll
dw1.Modify(modstring)