Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

SetArray

SetArray(oObj,aArray)

Replaces a control’s data in historical eAdvPL.

SetArrayAdvPL
01 · OVERVIEW

Overview

Historical eAdvPL reference, section 3.25. Syntax depends on that implementation’s macros and platform; current SmartClient support is unconfirmed. The first argument is the object and the second is the new array. Distinguish this global function from FWBrowse/TCBrowse methods. The guide does not establish copying, sharing or selection preservation: test those behaviors in the selected implementation. Validate old indices after resizing. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SetArray(oObj,aArray)

Return value

No useful return documented in this subset.

03 · PRACTICAL EXAMPLE

Commented example

// Fragment: existing control and verified item shape.
Local aItems := {"A","B"}
SetArray(oObj,aItems)
Expected result

Supplies two items to the control; proves neither persistence nor deep copying. 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.25. 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