nTopTop bound.
AdvPL GuideMsGetDados():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDeleta],[aAlter],[nFreeze],[lEmpty],[nMax],[cFieldOk],[cSuperDel],[uPar],[cDelOk],[oWnd],[lUseFreeze],[cTela])Maintains a legacy grid backed by aHeader and aCols.
TOTVS marks MsGetDados deprecated and recommends Protheus MVC for new work. The grid uses Private aRotina, aHeader, aCols and lRefresh. aCols follows header fields plus a logical deletion column. Documented properties include aAlter (editable fields), nMax (row limit) and lDeleta (enable deletion). Syntax below lists the constructor; this page’s method catalog is a maintenance subset, not the entire API. (Sources: refs. 1–1.)
MsGetDados():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDeleta],[aAlter],[nFreeze],[lEmpty],[nMax],[cFieldOk],[cSuperDel],[uPar],[cDelOk],[oWnd],[lUseFreeze],[cTela])nTopTop bound.
nLeftLeft bound.
nBottomBottom bound.
nRightRight bound.
nOpcAction position in aRotina.
MsGetDados():New(nTop,nLeft,nBottom,nRight,nOpc,[cLinhaOk],[cTudoOk],[cIniCpos],[lDeleta],[aAlter],[nFreeze],[lEmpty],[nMax],[cFieldOk],[cSuperDel],[uPar],[cDelOk],[oWnd],[lUseFreeze],[cTela])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 Ed541()
// 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.