cPontoEntradaNome do ponto de entrada, bloco ou identificador de customização a verificar.
AdvPL GuideExistBlock( <cPontoEntrada> ) --> lExisteChecks whether an entry point or custom block exists before executing it.
ExistBlock() checks whether a given customization is available in the environment. In extensible routines, it prevents calling ExecBlock() for a missing entry point and makes the code safer across customer, branch or module variations.
ExistBlock( <cPontoEntrada> ) --> lExistecPontoEntradaNome do ponto de entrada, bloco ou identificador de customização a verificar.
Lógico. Retorna .T. quando o bloco existe e .F. quando não existe.
#Include "TOTVS.ch"
User Function ExExistBlock()
Local lValid := .T.
If ExistBlock("MA030VLD")
lValid := ExecBlock("MA030VLD", .F., .F.)
EndIf
If lValid
MsgInfo("Validation authorized.")
EndIf
ReturnThe entry point is called only when it exists in the environment.
© 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.