向上、向下、向左或向右滚动 Visual FoxPro 主窗口或用户自定义窗口的一个区域。
语法
SCROLL nRow1, nColumn1, nRow2, nColumn2, nRowsScrolled
[, nColumnsScrolled]
参数
nRow1, nColumn1, nRow2, nColumn2
指定在 Visual FoxPro 主窗口或用户自定义窗口中滚动的一块长方形区域。nRow1, nColumn1 指定该区域的左上角, nRow2 和 nColumn2 指定该区域的右下角。
nRowsScrolled
指定在长方形区域内向上或向下滚动多少行。如果数值表达式
nRowsScrolled 为正数,则 Visual FoxPro 向上滚动指定行数。如果数值表达式 nRowsScrolled 为负数,则 Visual FoxPro 向下滚动指定行数。如果表达式 nRowsScrolled 等于零并且省略了参数 nColumnsScrolled,Visual FoxPro 清除该区域。
nColumnsScrolled
指定在长方形区域内向左或向右滚动多少列。如果数值表达式 nColumnsScrolled 为正数,则 Visual FoxPro 向右滚动指定列数。如果数值表达式 nColumnsScrolled 为负数,则 Visual FoxPro 向左滚动指定列数。如果同时包含 nRowsScrolled 和 nColumnsScrolled 参数,Visual FoxPro 沿对角线方向滚动该区域。