oColCreated column object.
AdvPL GuideADD DBCOLUMN <oCol> TO DBBROWSE <oBrw> FIELD <cField> [HEADER <cHead>] [WIDTH <nWidth>]Adds a column associated with a data field.
Historical eAdvpl reference, §3.20, p. 19. Syntax depends on that environment’s definitions; it does not establish compatibility with every current Protheus include. FIELD identifies a field in the DBBROWSE alias. Keep the workarea open while the component uses it. Unlike an array column, its source is a field; do not replace the field identifier with a numeric position. The example uses a read-only SA1 column. (Guia de referência eAdvpl, s.d., ref. 1)
ADD DBCOLUMN <oCol> TO DBBROWSE <oBrw> FIELD <cField> [HEADER <cHead>] [WIDTH <nWidth>]oColCreated column object.
oBrwExisting DBBROWSE with valid alias.
cFieldField name.
cHeadVisible heading.
nWidthEnvironment-specific width.
No business return value is documented for this interface operation.
// Historical fragment: oBrw uses an already open SA1.
Local oCol
ADD DBCOLUMN oCol TO DBBROWSE oBrw FIELD "A1_COD" ;
HEADER "Code" WIDTH 12
// Does not enable editing or close the caller-owned alias.Proposes an A1_COD column. Alias, window and browse are prerequisites. 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.