cParametroSX6 parameter name without branch.
AdvPL GuideGetNewPar(cParametro,uPadrao,[cFilial]) -> uValueReads a system parameter in branch context.
Reads SX6 with a fallback and optional branch. The fallback applies when the parameter is missing, not merely empty. The historical page also mentions help on absence and contrasts SuperGetMV: do not promise silent behavior on every release. (Sources: refs. 1–1.)
GetNewPar(cParametro,uPadrao,[cFilial]) -> uValuecParametroSX6 parameter name without branch.
uPadraoFallback when absent.
cFilialOptional branch; connection default.
Value according to parameter type.
#Include "Protheus.ch"
User Function Ed471()
// Execute only in a prepared test environment.
Local bRead := {|| GetNewPar("MV_DIAS",45)}
ConOut(ValType(bRead))
Return NilPrepares block B; reading depends on the environment and does not occur here. 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.