oColVariable receiving the column.
AdvPL GuideADD COLUMN <oCol> TO BROWSE <oBrw> ARRAY ELEMENT <elm> [HEADER <cHead>] [WIDTH <nWidth>]Defines a browse column bound to an array element.
Historical eAdvpl reference, §3.17, p. 17. Syntax depends on that environment’s definitions; it does not establish compatibility with every current Protheus include. ARRAY ELEMENT identifies the cell position in a data row. The array, browse and their binding must exist before the column. The example displays a text column without enabling editing. A display mask does not modify stored values. (Guia de referência eAdvpl, s.d., ref. 1)
ADD COLUMN <oCol> TO BROWSE <oBrw> ARRAY ELEMENT <elm> [HEADER <cHead>] [WIDTH <nWidth>]oColVariable receiving the column.
oBrwExisting bound browse.
elmElement position in each row.
cHeadColumn title.
nWidthWidth in the variant units.
No business return value is documented for this interface operation.
// Historical fragment: oBrw is already bound to {{"A"},{"B"}}.
Local oCol
ADD COLUMN oCol TO BROWSE oBrw ARRAY ELEMENT 1 ;
HEADER "Code" WIDTH 12
// No EDITABLE: no write behavior is assumed.Proposes displaying the first element of each row; browse construction is not included. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.