Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

MBrowse

mBrowse(nLinha1,nColuna1,nLinha2,nColuna2,cAlias,[...])

Displays records and routine actions in the legacy browse.

MBrowseAdvPL
01 · OVERVIEW

Overview

MBrowse and MBROWSE() are the same function, consolidated here. The minimum contract takes four coordinates and an alias; the official reference lists all optional arguments. Dictionary tables use SX3 and user settings for columns. Work files require alias TRB and aFixe field metadata in this reference. aRotina defines actions; cCadastro sets the title. This example only prepares a call for an already open alias and suitable Private context. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

mBrowse(nLinha1,nColuna1,nLinha2,nColuna2,cAlias,[...])

Parameters

nLinha1 / nColuna1
NumericRequired

Initial coordinates.

nLinha2 / nColuna2
NumericRequired

Final coordinates.

cAlias
CharacterRequired

Open SX3-defined alias, or TRB prepared according to source.

Return value

The example uses its UI effect; do not treat it as persistence confirmation.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed525()
    // Alias, SX3 and aRotina must exist; block not invoked.
    Local bBrowse := {|cAlias| mBrowse(6,1,22,75,cAlias)}
    ConOut(ValType(bBrowse))
Return Nil
Expected result

Prints B. Opens no browse and exposes no update actions. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Review actions and permissions before exposing the menu; visual filters do not replace access control. lSeeAll and lChgAll broaden branch scope and require explicit review. Save/restore work area and order.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. MBROWSE(). TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha