GetObjPos / GetObjSize
GetObjSize(oObj) -> aSize; GetObjPos: inconsistent historical signatureReads control position and size in historical eADVPL.
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.)
Syntax
GetObjSize(oObj) -> aSize; GetObjPos: inconsistent historical signatureCommented 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 NilPrepares 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.
- 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.

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