oMnuVariable for the created menu.
AdvPL GuideADD MENUBAR <oMnu> CAPTION <cCaption> OF <oWnd>Creates a menu associated with a historical window.
Historical eAdvpl reference, §3.4, p. 11. Syntax depends on that environment’s definitions; it does not establish compatibility with every current Protheus include. Menu items are added in a later step. The OF window must already exist. Creating visual structure does not grant permission to execute actions; the application must validate operations at execution time. (Guia de referência eAdvpl, s.d., ref. 1)
ADD MENUBAR <oMnu> CAPTION <cCaption> OF <oWnd>oMnuVariable for the created menu.
cCaptionMenu text.
oWndOwning window.
No business return value is documented for this interface operation.
// Historical fragment: oDlg already exists.
Local oMnu
ADD MENUBAR oMnu CAPTION "Inquiries" OF oDlg
// Add items before activating the window.Proposes a menu structure without items or actions. 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.