Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FunDesc

FunDesc() --> cRet

Reads the menu-option context.

FunDescAdvPL
01 · OVERVIEW

Overview

The historical manual describes FunDesc as the selected menu option description rather than necessarily the helper executing in the stack. Results depend on menu context. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FunDesc() --> cRet

Return value

Text for the documented context.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed406()
    // Run from the test menu without changing context.
    ConOut(FunDesc())
Return Nil
Expected result

Menu-dependent text; no fixed result outside that context. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Separate routine identification, description and authentication.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Advpl o Manual, versão 1.0, p. 347. Referência histórica; autoria não confirmada. Accessed on 2026-10-26.
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