nTopTop bound.
AdvPL GuideMsGetDB():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDelete],[aAlter],[nFreeze],[lEmpty],[uPar1],cTRB,[cFieldOk],[uPar2],[lAppend],[oWnd],[lDisparos],[uPar3],[cDelOk],[cSuperDel])Maintains a legacy grid backed by a temporary table.
Legacy class editing rows in the temporary alias supplied as constructor cTRB. Requires Private aRotina and aHeader; table layout must follow the header and contain the final logical deletion flag. Enable and Disable control interaction; ForceRefresh updates and positions at the first row. Validation callbacks must be accessible functions, not Static. This fragment covers only those three methods and creates neither table nor dialog. (Sources: refs. 1–1.)
MsGetDB():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDelete],[aAlter],[nFreeze],[lEmpty],[uPar1],cTRB,[cFieldOk],[uPar2],[lAppend],[oWnd],[lDisparos],[uPar3],[cDelOk],[cSuperDel])nTopTop bound.
nLeftLeft bound.
nBottomBottom bound.
nRightRight bound.
nOpcAction position in aRotina.
cTRBTemporary alias used for editing.
MsGetDB():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDelete],[aAlter],[nFreeze],[lEmpty],[uPar1],cTRB,[cFieldOk],[uPar2],[lAppend],[oWnd],[lDisparos],[uPar3],[cDelOk],[cSuperDel])Class instance.
oGrid:Enable()oGrid:Disable()oGrid:ForceRefresh()New returns the object; this example does not use the other methods’ returns.
#Include "Protheus.ch"
User Function Ed542()
// Requires an object already built in the correct dialog; block not invoked.
Local bRefresh := {|oGrid| oGrid:ForceRefresh()}
ConOut(ValType(bRefresh))
Return NilPrints B. When invoked with a valid object, refresh may change the current row. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.