VLine (statement)


VLine [lines]


Scrolls the window with the focus up or down by the specified number of lines.


The lines parameter is an Integer specifying the number of lines to scroll. If this parameter is omitted, then the window is scrolled down by one line.


This example prints a series of lines to the viewport, then scrolls back up the lines to the top using VLine.

Sub Main()

  "BasicScript Viewport",100,100,500,200

  For i = 1 to 50

    Print "This will be displayed on line#: " & i

  Next i

  MsgBox "We will now go back 40 lines..."

  VLine -40

  MsgBox "...and here we are!"

End Sub

See Also

VPage (statement); VScroll (statement).

More information