AP5Wab
AP5Wab() --> lRetOpens the historical email address book.
Overview
The official page describes an address-book maintenance window showing customers, suppliers, sales representatives and contacts according to user access. Its listed scope is Protheus 10 and 11. A .T. result indicates OK was clicked; it does not establish email sending or a completed business transaction. The page lists historical access codes 126, 127, 128 and 146, which require verification in the current environment. (TOTVS, n.d., ref. 1)
Syntax
AP5Wab() --> lRetReturn value
Logical: .T. when the user clicks OK, according to the historical page.
Commented example
#Include "Protheus.ch"
User Function EdAp5Wab()
Local lConfirmed
// Opens the interface under session permissions; sends no message.
lConfirmed := AP5Wab()
ConOut(cValToChar(lConfirmed))
Return NilProposes opening the window and logging only its answer; no address is logged. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Use test data and an authorized session. Distinguish AP5Wab from the Ap5WABbtn entry point; do not use it in jobs or REST.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.