nRow, nColOrigin position in the units of the selected variant.
AdvPL Guide@ nRow, nCol LISTBOX oLbx [VAR nVar] ITEMS aItems [SIZE nWidth, nHeight] OF oWndDisplays selectable list items.
The eAdvpl reference guide, §3.12, p. 15, records the historical variant shown in the syntax. Fragments assume the matching environment and command definitions; they are not a complete application. The historical command binds ITEMS to a numeric VAR selection. TListBox provides direct construction and methods such as SetArray; consult the method signature before replacing component data. A selected position does not establish a business identifier and must not be retained blindly after reordering. (Refs. 1–2)
@ nRow, nCol LISTBOX oLbx [VAR nVar] ITEMS aItems [SIZE nWidth, nHeight] OF oWndnRow, nColOrigin position in the units of the selected variant.
oWnd / oDlgExisting parent window; use the identifier from the actual code.
aItemsDisplayed options.
nVarSelection index in the historical variant; validate before indexing.
Interface/printing command; do not use as a function-return expression.
// Historical fragment; oDlg already exists.
Local oLbx
Local nItem := 1
Local aItems := {"Documentation", "Examples", "Tests"}
@ 2, 2 LISTBOX oLbx VAR nItem ITEMS aItems SIZE 28, 5 OF oDlg
// Validate nItem before reading aItems[nItem].Proposes three items initially selecting the first. No data is written. 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.