SetText / SetFocus
SetText(oGet,cText); SetFocus(oGet)Updates text and directs focus in historical eAdvPL.
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.)
Syntax
SetText(oGet,cText); SetFocus(oGet)Return value
No useful return documented in this subset.
Commented example
// Fragment: existing, visible and enabled GET.
SetText(oGet,"Example")
SetFocus(oGet)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.
- 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.

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