FunName
FunName() --> cRetReads the menu-option context.
Overview
FunName identifies the menu-context program. A helper called by that program does not automatically become the result. TDN recommends testing through a menu entry; automation may set context through RpcSetEnv. A name is not authorization evidence. (Sources: refs. 1–1.)
Syntax
FunName() --> cRetReturn value
Text for the documented context.
Commented example
#Include "Protheus.ch"
User Function Ed407()
// Run from the test menu without changing context.
ConOut(FunName())
Return NilMenu-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.
- Separate routine identification, description and authentication.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.