GridReset and grid navigation
GridReset(oGrid); GridRow(oGrid) -> nRow; GridRows(oGrid) -> nVisibleRefreshes and reads navigation in a historical eADVPL grid.
Overview
The guide distinguishes GridReset for refresh, GridRow for selected row and GridRows for visible rows; the latter is not the source record count. GridSetRow selects a row and GridLeft/GridRight move columns. This example prepares callbacks without executing against a nonexistent control. (Sources: refs. 1–1.)
Syntax
GridReset(oGrid); GridRow(oGrid) -> nRow; GridRows(oGrid) -> nVisibleCommented example
#Include "Protheus.ch"
User Function Ed477()
// Historical subset; supply a grid from the corresponding runtime.
Local bRefresh := {|oGrid| GridReset(oGrid)}
Local bPosition := {|oGrid| {GridRow(oGrid),GridRows(oGrid)}}
ConOut(ValType(bRefresh))
ConOut(ValType(bPosition))
Return NilPrepares refresh and reading without changing selection or source data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Check the actual class API; do not replace a modern component Refresh with a historical function without validation.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.