ENTRY POINTUnder review
MT010BRW
User Function MT010BRW()Before browse activation
Overview
Runs at the start of MATA010 before activating the browse. Provides extra menu options consumed by standard processing. Return an array even when the skeleton adds no options.
Syntax
User Function MT010BRW()Return value
An array of additional options. The empty skeleton array leaves the menu unchanged.
Skeleton example
#Include "Protheus.ch"
/*/{Protheus.doc} MT010BRW
Provides menu options before browse activation.
@type User Function
@author Usina.BR
@since 31/10/2026
@return A
/*/
User Function MT010BRW()
Local aRotUser := {}
// Add only valid options in the format supported by the release.
Return aRotUserExpected result
An array of additional options. The empty skeleton array leaves the menu unchanged.
- The mapping relates intent, not identical signatures or returns. Conventional MTA010OK returns logical; FORMCOMMITTTSPRE expects no return. To block total model validation, use the logical MODELPOS return according to its contract. MT010BRW is listed as unchanged, which does not prove that every legacy hook runs in every release.
- Confirm availability in the target release. This MT010BRW skeleton was not compiled or executed during this review.

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