cParametroExisting SX6 name without branch.
AdvPL GuidePutMV(cParametro,xConteudo,[lErro])Updates an existing SX6 parameter.
TDN states that PutMV uses the connection branch and expects an existing parameter; the branch is not appended to its name. The third argument controls error presentation when an exclusive-access issue prevents updating. The community example shows PutMV and PutMvFil, but production settings should not be modified for demonstration. This uninvoked block uses a fictional parameter to be created and tested in a sandbox. (Sources: refs. 1–2.)
PutMV(cParametro,xConteudo,[lErro])cParametroExisting SX6 name without branch.
xConteudoValue matching SX6 definition.
lErroShows error when .T., documented default; .F. returns failure without that presentation.
TDN documents .F. on failure; community example describes .T. on success.
#Include "Protheus.ch"
User Function Ed608()
// MV_X_ED608 must exist in the sandbox; block not invoked.
Local bUpdate := {|xValue| PutMV("MV_X_ED608",xValue,.F.)}
ConOut(ValType(bUpdate))
Return NilCreates block B; neither changes SX6 nor creates the parameter. 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.