Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

GetMark

GetMark([lMaiusc]) -> cMark

Obtains a marker for browse row selection.

GetMarkAdvPL
01 · OVERVIEW

Overview

The function is used for selection markers, as demonstrated by MsSelect. The historical manual describes optional lMaiusc to restrict uppercase characters. It is a function despite its old queue classification, and not an authentication token. Current MsSelect documentation marks that class deprecated and recommends FWMarkBrowse. (Sources: refs. 1–2.)

02 · SYNTAX

Syntax

GetMark([lMaiusc]) -> cMark

Return value

Selection marker string.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed469()
    Local cMark := GetMark()
    // Marker for the browse, without writing records.
    ConOut(cValToChar(Len(cMark)))
Return Nil
Expected result

Obtains a marker and shows its length without promising a fixed value. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Retain the marker for the browse lifetime and distinguish inverted selection.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. MsSelect — uso de GetMark. TDN. Accessed on 2026-10-27.
  2. Waterloo Ferreira da Silva. AdvPL — O Manual, versão 1.0; p. 348. 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