lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|r2= Nothing |RETURNVALUE= " to "|r2= Nothing |RETURNVALUE2= ")
Line 5: Line 5:


|1.08|Game version=
|1.08|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sorts listbox entries alphabetically ascending by their [[lbText]]
| Sorts listbox entries alphabetically ascending by their [[lbText]]. |DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lbSort''' control |SYNTAX=
| [[lbSort]] control |SYNTAX=


|p1=  control: [[Control]] |PARAMETER1=
|p1=  control: [[Control]] |PARAMETER1=
Line 19: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________


|s2= '''lbSort''' [control, sortOrder]        (''since Arma 3 v1.18'') |SYNTAX2=
|s2= [[lbSort]] [control, sortOrder] {{since|arma3|1.18|y}} |SYNTAX2=


|p21=  control: [[Control]] |PARAMETER21=
|p21=  control: [[Control]] |PARAMETER21=
|p22=  sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER2=
|p22=  sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER22=


|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


|s3= '''lbSort''' idc        (''since Arma 3 v1.67'')|SYNTAX=
|s3= [[lbSort]] idc {{since|arma3|1.67|y}} |SYNTAX3=


|p41=  idc: [[Number]] |PARAMETER1=
|p41=  idc: [[Number]] |PARAMETER41=


|r3= [[Nothing]] |RETURNVALUE3=
|r3= [[Nothing]] |RETURNVALUE3=
____________________________________________________________________________________________


|s4= '''lbSort''' [idc, sortOrder]        (''since Arma 3 v1.67'')|SYNTAX=
|s4= [[lbSort]] [idc, sortOrder] {{since|arma3|1.67|y}} |SYNTAX4=


|p61=  idc: [[Number]] |PARAMETER1=
|p61=  idc: [[Number]] |PARAMETER61=
|p62=  sortOrder: [[String]] - "ASC": ascending, "DESC": descending|PARAMETER2=
 
|p62=  sortOrder: [[String]] - "ASC": ascending, "DESC": descending |PARAMETER62=


|r4= [[Nothing]] |RETURNVALUE4=
|r4= [[Nothing]] |RETURNVALUE4=
Line 49: Line 48:


| [[lbSortByValue]], [[lnbSort]], [[tvSort]], [[lbSortByValue]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbText]], [[lbValue]] |SEEALSO=
| [[lbSortByValue]], [[lnbSort]], [[tvSort]], [[lbSortByValue]], [[tvSortByValue]], [[lnbSortByValue]], [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbText]], [[lbValue]] |SEEALSO=
}}
}}


Line 57: Line 55:
<dd class="notedate">Posted: Sep 10 2014</dd>
<dd class="notedate">Posted: Sep 10 2014</dd>
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
<dd class="note">More information on the LB command family can be found [https://community.bistudio.com/wiki/List_Box here]
<dd class="note">More information on the LB command family can be found on the [[List Box]] page.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 64: Line 62:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Revision as of 22:53, 1 November 2019

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

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText.
Groups:
Uncategorised

Syntax 1

Syntax:
lbSort control
Parameters:
control: Control
Return Value:
Nothing

Syntax 2

Syntax:
lbSort [control, sortOrder] Template:since
Parameters:
control: Control
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Syntax 3

Syntax:
lbSort idc Template:since
Parameters:
idc: Number
Return Value:
Nothing

Syntax 4

Syntax:
lbSort [idc, sortOrder] Template:since
Parameters:
idc: Number
sortOrder: String - "ASC": ascending, "DESC": descending
Return Value:
Nothing

Examples

Example 1:
lbSort _myControl;
Example 2:
lbSort [_myControl, "DESC"];
Example 3:
lbSort 101;
Example 4:
lbSort [101, "DESC"];

Additional Information

See also:
lbSortByValuelnbSorttvSortlbSortByValuetvSortByValuelnbSortByValuelbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbTextlbValue

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

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found on the List Box page.

Bottom Section