Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

SetText / SetFocus

SetText(oGet,cText); SetFocus(oGet)

Updates text and directs focus in historical eAdvPL.

SetText / SetFocusAdvPL
01 · OVERVIEW

Overview

Historical eAdvPL reference, section 3.30–3.31. Syntax depends on that implementation’s macros and platform; current SmartClient support is unconfirmed. SetText receives an object and text; SetFocus receives the target control. The source does not demonstrate automatic validation, bound-variable updates or VALID execution. Changing GET appearance does not replace model validation and persistence. The control must be visible and enabled for a focus request to make sense. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SetText(oGet,cText); SetFocus(oGet)

Return value

No useful return documented in this subset.

03 · PRACTICAL EXAMPLE

Commented example

// Fragment: existing, visible and enabled GET.
SetText(oGet,"Example")
SetFocus(oGet)
Expected result

Requests text and focus; does not establish a business-variable update or write. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Verify includes and graphical context in the target release. The fragment assumes the stated objects; it is not a complete application. Do not use in headless execution.
  • 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. §3.30–3.31. Cópia pública histórica, consultada nas seções citadas. Accessed on 2026-10-28.
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