cCampoField with registered help.
AdvPL GuideGetHlpSoluc(cCampo) -> aHelp (community subset)Retrieves a field help’s problem and solution texts.
The public Terminal de Informação example uses return positions 1 and 2 in a GET bHelp. This community subset does not guarantee structure on every release. The example queries once and checks array type and length before accessing both positions; the field help must be available in the environment. (Sources: refs. 1–1.)
GetHlpSoluc(cCampo) -> aHelp (community subset)cCampoField with registered help.
#Include "Protheus.ch"
User Function Ed468()
Local aHelp := GetHlpSoluc("B1_COD")
// Validate return before indexing.
If ValType(aHelp) == "A"
If Len(aHelp) >= 2
ConOut(cValToChar(aHelp[1]))
ConOut(cValToChar(aHelp[2]))
EndIf
EndIf
Return NilShows available texts without assuming language or completeness. 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.