Click to Rate and Give Feedback
MSDN
MSDN Library
Visual FoxPro
Reference
Language Reference
Commands
 SCROLL Command
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual FoxPro 9.0 SP2
SCROLL Command

Scrolls an area of the main Visual FoxPro window or a user-defined window up, down, left, or right.

SCROLL nRow1, nColumn1, nRow2, nColumn2, nRowsScrolled
    [, nColumnsScrolled]

Parameters

nRow1, nColumn1, nRow2, nColumn2

Specifies the rectangular region where scrolling occurs in the main Visual FoxPro window or in the active user-defined window. nRow1, nColumn1 specifies the upper-left corner of the region, and nRow2, nColumn2 specifies the lower-right corner.

nRowsScrolled

Specifies the number of rows up or down to scroll inside the rectangular region. If the numeric expression nRowsScrolled is positive, Visual FoxPro scrolls up the number of rows. If nRowsScrolled is negative, Visual FoxPro scrolls down the number of rows. If nRowsScrolled is 0 and you omit nColumnsScrolled, Visual FoxPro clears the rectangular region.

nColumnsScrolled

Specifies the number of columns left or right to scroll inside the rectangular region. If the numeric expression nColumnsScrolled is positive, Visual FoxPro scrolls to the right the number of columns. If nColumnsScrolled is negative, Visual FoxPro scrolls to the left the number of columns. If you include both nRowsScrolled and nColumnsScrolled, Visual FoxPro scrolls the area diagonally.

The following command scrolls a small rectangular region:

CLEAR
@ 4, 1 FILL TO 10, 8 COLOR GR+/B
WAIT WINDOW 'Press key to scroll left top corner'
SCROLL 0, 0, 5, 5, -2, 1
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker