nOpcaRotina position or operation according to context.
AdvPL GuideMsmGet():New([cAlias],[uPar2],nOpc,lUnqFocus,[uPar5],[uPar6],[aAcho],[aPos],[aCpos],[nModelo],[uPar11],[uPar12],[uPar13],[oWnd],[lF3],[lMemoria],[lColumn],[caTela],[lNoFolder],[lProperty],[aField],[aFolder],[lCreate],[lNoMDIStretch],[uPar25])Creates a field form from SX3 or an array.
MsMGet organizes field controls and validation. It can edit memory variables or table fields according to lMemoria. lProperty avoids Private aTela/aGets dependencies and uses corresponding properties. Validation runs X3_VLDUSER, X3_VALID, then the trigger. If Private aRotina exists, nOpc is its row position, not the operation code. The official page conflicts at position four: current syntax uses lUnqFocus while the old table lists uPar4; verify the LIB because lUnqFocus is documented from 20220502. (Sources: refs. 1–1.)
MsmGet():New([cAlias],[uPar2],nOpc,lUnqFocus,[uPar5],[uPar6],[aAcho],[aPos],[aCpos],[nModelo],[uPar11],[uPar12],[uPar13],[oWnd],[lF3],[lMemoria],[lColumn],[caTela],[lNoFolder],[lProperty],[aField],[aFolder],[lCreate],[lNoMDIStretch],[uPar25])nOpcaRotina position or operation according to context.
lUnqFocusFocus a sole field; verify LIB 20220502 or later.
MsmGet():New([cAlias],[uPar2],nOpc,lUnqFocus,[uPar5],[uPar6],[aAcho],[aPos],[aCpos],[nModelo],[uPar11],[uPar12],[uPar13],[oWnd],[lF3],[lMemoria],[lColumn],[caTela],[lNoFolder],[lProperty],[aField],[aFolder],[lCreate],[lNoMDIStretch],[uPar25])oForm:Refresh()oForm:Enable()oForm:Disable()oForm:Show()oForm:Hide()oForm:SetFocus()New creates the object; documentation gives no useful return for the listed methods.
#Include "Protheus.ch"
User Function Ed548()
// Requires an existing instance; block not invoked.
Local bRefresh := {|oForm| oForm:Refresh()}
ConOut(ValType(bRefresh))
Return NilPrints B; creates no form and writes no fields. 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.