Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

HideControl / ShowControl

HideControl(oObjeto); ShowControl(oObjeto)

Hides and shows controls in historical eADVPL.

HideControl / ShowControlAdvPL
01 · OVERVIEW

Overview

The guide describes HideControl(oObject) and ShowControl(oObject) without applicable return values. Both operate on an existing object. This example prepares two blocks for later integration; it does not automatically transfer these functions to modern components with their own methods. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

HideControl(oObjeto); ShowControl(oObjeto)

Parameters

oObjeto
ObjectRequired

Existing control to hide or show.

Return value

No applicable return according to the historical guide.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed482()
    // Receive a valid control; caller manages focus.
    Local bHide := {|oControl| HideControl(oControl)}
    Local bShow := {|oControl| ShowControl(oControl)}
    ConOut(ValType(bHide))
    ConOut(ValType(bShow))
Return Nil
Expected result

Prepares callbacks without changing visibility. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Hiding a control does not implement authorization; enforce access at the operation.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de Referência eADVPL (histórico). §§3.26–3.27. 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