oItemCreated item variable.
AdvPL GuideADD MENUITEM <oItem> CAPTION <cCaption> [ACTION <uAction>] OF <oMnu>Adds an action to an existing menu.
Historical eAdvpl reference, §3.5, p. 12. Syntax depends on that environment’s definitions; it does not establish compatibility with every current Protheus include. OF identifies the parent menu rather than the window. Evaluate the action when the user selects the item. The example displays a message without changing data; real operations must revalidate arguments and permissions inside their action. (Guia de referência eAdvpl, s.d., ref. 1)
ADD MENUITEM <oItem> CAPTION <cCaption> [ACTION <uAction>] OF <oMnu>oItemCreated item variable.
cCaptionItem caption.
uActionSelection action.
oMnuExisting parent menu.
No business return value is documented for this interface operation.
// Historical fragment: oMnu already exists.
Local oItem
ADD MENUITEM oItem CAPTION "Check" ;
ACTION Alert("Inquiry requested") OF oMnuProposes an item displaying a message when selected; it performs no writes. 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.