Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

MarkBrow

MarkBrow(cAlias,cCampo,[cCpo],[aCampos],[lInverte],cMarca,[cCtrlM],[uPar],[cExpIni],[cExpFim],[cAval]) -> NIL

Displays a legacy mark-selection browse.

MarkBrowAdvPL
01 · OVERVIEW

Overview

Alias, mark-storage field and cMarca form the minimum contract. aCampos defines columns; callbacks and ranges depend on the index and caller. Requires Private cCadastro and aRotina. A mark is not a business permission or authorization to change records. This example prepares a reduced call without opening a window or writing real tables. Historical reference: verify behavior in the deployed release/RDD. (Sources: refs. 1–2.)

02 · SYNTAX

Syntax

MarkBrow(cAlias,cCampo,[cCpo],[aCampos],[lInverte],cMarca,[cCtrlM],[uPar],[cExpIni],[cExpFim],[cAval]) -> NIL

Parameters

cAlias
CharacterRequired

Open data work area.

cCampo
CharacterRequired

Mark field.

cMarca
CharacterRequired

Value used to mark rows.

Return value

NIL according to the historical source; remaining optional arguments are documented there.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed522()
    // Requires a prepared alias/field and Private context; do not invoke alone.
    Local bBrowse := {|cAlias,cField,cMark| MarkBrow(cAlias,cField,,,,cMark)}
    ConOut(ValType(bBrowse))
Return Nil
Expected result

Prints B. The caller must supply mark and context before evaluation. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Do not copy old samples that write without checking RecLock. Validate selection, concurrency and cleanup; evaluate FWMarkBrowse for new work.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Waterloo Ferreira da Silva. AdvPL — O Manual, versão 1.0, p. 353. Referência histórica. Accessed on 2026-10-27.
  2. Waterloo Ferreira da Silva. AdvPL — O Manual, versão 1.0, p. 354. Referência histórica. 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