cNameParameter name without branch.
AdvPL GuideSuperGetMV(cName,lHelp,xDefault,[cBranch]) -> xValueReads SX6 parameters through the documented cache.
Arguments are the name without branch, help option, default value and optional branch. Documentation describes an in-memory cache for repeated reads; check refresh policy when parameters change. Match default type to the expected value and choose branch deliberately. This uninvoked query uses numeric zero; MV_X_ED680 is fictional rather than a product-standard parameter. (Sources: refs. 1–2.)
SuperGetMV(cName,lHelp,xDefault,[cBranch]) -> xValuecNameParameter name without branch.
lHelpShows help if not found.
xDefaultDefault matching expected type.
cBranchBranch; current by default.
Content or default, type determined by parameter.
#Include "Protheus.ch"
User Function Ed680()
// Fictional name; the block neither reads nor creates a parameter.
Local bParameter := {|| SuperGetMV("MV_X_ED680",.F.,0)}
ConOut(ValType(bParameter))
Return NilCreates block B. No environment value or cache state was verified. 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.