lbSelection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality is not aplicable)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns [[Array]] of selected rows indices in the given listbox of style LB_MULTI (multi-selection). For single selection listbox use [[lbCurSel]] instead.|= Description
| Returns [[Array]] of selected rows indices in the given listbox of style LB_MULTI (multi-selection). For single selection listbox use [[lbCurSel]] instead.|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


|'''lbSelection''' control |= Syntax
|'''lbSelection''' control |SYNTAX=


|p1=  control: [[Control]] |= Parameter 1
|p1=  control: [[Control]] |PARAMETER1=


| [[Array]] |= Return value
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_indices = [[lbSelection]] _control;</code> |= Example 1
|x1= <code>_indices = [[lbSelection]] _control;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also
| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |SEEALSO=


}}
}}

Revision as of 15:42, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns Array of selected rows indices in the given listbox of style LB_MULTI (multi-selection). For single selection listbox use lbCurSel instead.
Groups:
Uncategorised

Syntax

Syntax:
lbSelection control
Parameters:
control: Control
Return Value:
Array

Examples

Example 1:
_indices = lbSelection _control;

Additional Information

See also:
lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on April 10, 2016 - 16:50 (UTC)
Larrow
This command works fine with listboxs of style LB_MULTI and should not be marked as obsolete as lbCurSel does not provide the same functionality.