Usina BRAdvPL Guide
Sign in
← All topics
PRACTICAL GUIDEUnder review

DisableControl / EnableControl

Records two historical control-enabling calls.

DisableControl / EnableControlAdvPL
01 · OVERVIEW

Overview

The eAdvpl guide lists DisableControl(oObject) and EnableControl(oObject). DisableControl has an apparent wording error: its purpose says enable while the parameter says disable. This page records the inconsistency and treats the pair as historical, without asserting compatibility with current objects. Disabled visual controls do not enforce write authorization. The example only prepares callbacks for a caller-supplied object. (Guia de referência eAdvpl, n.d., sections 3.28–3.29, p. 21, ref. 1)

03 · PRACTICAL EXAMPLE

Commented example

// Historical reference; callbacks are not invoked.
bDisable := {|oControl| DisableControl(oControl)}
bEnable := {|oControl| EnableControl(oControl)}
Expected result

No control changed; availability and accepted type require validation. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Prefer the documented contract of the actual component.
  • 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. Seções 3.28–3.29, p. 21. 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