Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWGetMnuFile

FWGetMnuFile()

Reads menu identification observed in a public example.

FWGetMnuFileAdvPL
01 · OVERVIEW

Overview

CHKEXEC.PRW in thalysjuvenal/LOG_DE_ACESSO calls FWGetMnuFile with no arguments and applies AllTrim before writing ZZL_XNU. This shows observed menu-text usage rather than a universal format or validity outside that context. The original writes an owned table and collects environment data; this adaptation removes those operations and only wraps the lookup. The official Diversos index supplied no specific contract during this research. (Sources: refs. 1–2.)

02 · SYNTAX

Syntax

FWGetMnuFile()

Return value

Treated as text by the example; complete contract pending.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed427()
    // Editorial adaptation: no ZZL writes or personal-data collection.
    Local bMenu := {|| FWGetMnuFile()}
Return Nil
Expected result

Prepared block; concrete output depends on menu context. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check context and return before integration; the example does not replace a complete routine.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. thalysjuvenal/LOG_DE_ACESSO. CHKEXEC.PRW. Commit f724cd44740927b8a8cd630881d3be611ffe487e. Fonte analisado. Accessed on 2026-10-27.
  2. TOTVS. Diversos, índice de referência. 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