Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

GetObjPos / GetObjSize

GetObjSize(oObj) -> aSize; GetObjPos: inconsistent historical signature

Reads control position and size in historical eADVPL.

GetObjPos / GetObjSizeAdvPL
01 · OVERVIEW

Overview

The reference guide describes coordinate and size arrays. Its GetObjPos section contains a MoveControl syntax line inconsistent with title and return; the example therefore calls only GetObjSize, whose signature is explicit. We do not assign an unconfirmed element order or guarantee availability in current SmartClient. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

GetObjSize(oObj) -> aSize; GetObjPos: inconsistent historical signature
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed473()
    // Receives an existing control from the validated eADVPL environment.
    Local bSize := {|oControl| GetObjSize(oControl)}
    ConOut(ValType(bSize))
Return Nil
Expected result

Prepares a size query; no control is created or modified. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Confirm units, array order and component API before moving or resizing.
  • 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.42–3.43. 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