lbSort: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|r3= Nothing |RETURNVALUE= " to "|r3= Nothing |RETURNVALUE3= ")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(68 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


|arma|Game name=
|game1= arma1
|version1= 1.08


|1.08|Game version=
|game2= arma2
|version2= 1.00


____________________________________________________________________________________________
|game3= arma2oa
|version3= 1.50


| Sorts listbox entries alphabetically ascending by their [[lbText]]
|game4= tkoh
|DESCRIPTION=
|version4= 1.00
____________________________________________________________________________________________


| '''lbSort''' control |SYNTAX=
|game5= arma3
|version5= 0.50


|p1= control: [[Control]] |PARAMETER1=
|gr1= GUI Control - ListBox


| [[Nothing]] |RETURNVALUE=
|descr= Sorts listbox entries alphabetically ascending by their [[lbText]].
____________________________________________________________________________________________


|s2= '''lbSort''' [control, sortOrder] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''since Arma 3 v1.18'') |SYNTAX2=
|s1= [[lbSort]] control


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


|r2= [[Nothing]] |RETURNVALUE=
|r1= [[Nothing]]


____________________________________________________________________________________________
|s2= [[lbSort]] [control, sortOrder]


|s3= '''lbSort''' idc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''since Arma 3 v1.67'')|SYNTAX=
|s2since= arma3 1.18


|p41= idc: [[Number]] |PARAMETER1=
|p21= control: [[Control]]
|p22= sortOrder: [[String]] - "ASC": ascending, "DESC": descending


|r3= [[Nothing]] |RETURNVALUE3=
|r2= [[Nothing]]


|s4= '''lbSort''' [idc, sortOrder] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''since Arma 3 v1.67'')|SYNTAX=
|s3= [[lbSort]] idc


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


|r4= [[Nothing]] |RETURNVALUE4=
|p41= idc: [[Number]]
____________________________________________________________________________________________
 
|x1= <code>[[lbSort]] _myControl;</code>|EXAMPLE1=
|x2= <code>[[lbSort]] [_myControl, "DESC"];</code>|EXAMPLE2=
|x3= <code>[[lbSort]] 101;</code>|EXAMPLE3=
|x4= <code>[[lbSort]] [101, "DESC"];</code>|EXAMPLE4=
____________________________________________________________________________________________


| [[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=
|r3= [[Nothing]]


|s4= [[lbSort]] [idc, sortOrder]
|s4since= arma3 1.68
|p61= idc: [[Number]]
|p62= sortOrder: [[String]] - "ASC": ascending, "DESC": descending
|r4= [[Nothing]]
|x1= <sqf>lbSort _myControl;</sqf>
|x2= <sqf>lbSort [_myControl, "DESC"];</sqf>
|x3= <sqf>lbSort 101;</sqf>
|x4= <sqf>lbSort [101, "DESC"];</sqf>
|seealso= [[lbSortBy]] [[lnbSortBy]] [[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]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dt></dt>
<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 -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:23, 13 May 2022

Hover & click on the images for description

Description

Description:
Sorts listbox entries alphabetically ascending by their lbText.
Groups:
GUI Control - ListBox

Syntax 1

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

Syntax 2

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

Syntax 3

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

Syntax 4

Syntax:
lbSort [idc, sortOrder]
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:
lbSortBy lnbSortBy 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

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
Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found on the List Box page.