cPontoEntradaNome do ponto de entrada ou bloco a executar.
AdvPL GuideExecBlock( <cPontoEntrada>, [lMostraErro], [lRetorna], [aParametros] ) --> uRetExecutes an entry point or custom block in the Protheus environment.
ExecBlock() calls a customization registered in the environment. It is a classic Protheus extension mechanism: a standard routine checks or executes an entry point to allow validations and specific behavior without changing the standard source.
ExecBlock( <cPontoEntrada>, [lMostraErro], [lRetorna], [aParametros] ) --> uRetcPontoEntradaNome do ponto de entrada ou bloco a executar.
lMostraErroIndica tratamento/exibição de erro conforme o padrão do ambiente.
lRetornaIndica se a chamada deve considerar retorno do bloco executado, conforme contrato da rotina.
aParametrosParâmetros enviados ao ponto de entrada, quando previstos pelo contrato.
#Include "TOTVS.ch"
User Function ExExecBlock()
Local lContinue := .T.
If ExistBlock("MA030VLD")
lContinue := ExecBlock("MA030VLD", .F., .F.)
EndIf
If !lContinue
MsgStop("Validation stopped by the entry point.")
EndIf
ReturnRuns the customization only when it exists and respects the logical return.
© 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.