uPar1 / uPar2 / uPar3Positions omitted in the analyzed partial invocation.
AdvPL GuideConPad1( [uPar1], [uPar2], [uPar3], <cConsulta>, ... ) --> lRetOpens a standard lookup identified in SXB.
ConPad1 is a lookup function despite appearing as a class in some historical lists. The official custom-lookup example places the SXB name fourth and uses a logical confirmation return; that return is not field content. The old TDN page was found deleted, so this page only shows the partial invocation supported by functional documentation and public ConPad1.PRW. Further arguments and content retrieval depend on lookup and release. The example preserves SA1 position and logs no selected-customer data. (TOTVS, 2022, ref. 1; EURAI, n.d., ref. 2)
ConPad1( [uPar1], [uPar2], [uPar3], <cConsulta>, ... ) --> lRetuPar1 / uPar2 / uPar3Positions omitted in the analyzed partial invocation.
cConsultaSXB lookup name in the fourth position.
Logical lookup confirmation in the analyzed official example.
#Include "Protheus.ch"
User Function Ed312()
Local aArea := GetArea()
Local aAreaSA1
Local lConfirmed
If Select("SA1") > 0
aAreaSA1 := SA1->(GetArea())
// Requires configured SA1 lookup in SXB and an interactive session.
lConfirmed := ConPad1(,,,"SA1")
ConOut(cValToChar(lConfirmed))
RestArea(aAreaSA1)
EndIf
RestArea(aArea)
Return NilLogical choice depending on interaction; not a customer code or record change. 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.