ctSetValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\: ?Command[ _]Group\:.*\|\{\{uc\:\{\{PAGENAME\}\}\}\}\]\] " to "")
m (Text replacement - "<code>([a-zA-Z0-9_, ]+) +\[\[([a-zA-Z0-9_]+)\]\] +(\[[a-zA-Z0-9_, ]+\]);?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
 
(40 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


|arma3 |= Game
|game1= arma3
|1.70|Game Version=
|version1= 1.70
____________________________________________________________________________________________


| Associates metadata (number) with the row determined by the index. Returns Nothing. |DESCRIPTION=
|gr1= GUI Control - Controls Table
____________________________________________________________________________________________


| control '''ctSetValue''' [index, value] |SYNTAX=
|descr= Associates metadata (number) with the row determined by the index. Returns Nothing.


||gr1= GUI Control|GROUP1=
|s1= control [[ctSetValue]] [index, value]


|p1= control: [[Control]] |PARAMETER1=
|p1= control: [[Control]]
|p2= index: [[Number]] |PARAMETER2=
|p2= index: [[Number]]
|p3= value: [[Number]] |PARAMETER3=
|p3= value: [[Number]]


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


____________________________________________________________________________________________
|x1= <sqf>_control ctSetValue [0, 23];</sqf>
 
|x1= <code>_control [[ctSetValue]] [0, 23];</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[ctAddRow]], [[ctAddHeader]], [[ctClear]], [[ctCurSel]], [[ctRowControls]], [[ctHeaderControls]], [[ctRowCount]], [[ctHeaderCount]], [[ctSetCurSel]], [[ctValue]], [[ctSetData]], [[ctData]], [[ctFindRowHeader]], [[ctFindHeaderRows]], [[ctRemoveRows]], [[ctRemoveHeaders]], [[ctSetRowTemplate]], [[ctSetHeaderTemplate]] |SEEALSO=


|seealso= [[ctAddRow]] [[ctAddHeader]] [[ctClear]] [[ctCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetCurSel]] [[ctValue]] [[ctSetData]] [[ctData]] [[ctFindRowHeader]] [[ctFindHeaderRows]] [[ctRemoveRows]] [[ctRemoveHeaders]] [[ctSetRowTemplate]] [[ctSetHeaderTemplate]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Latest revision as of 14:23, 5 May 2022

Hover & click on the images for description

Description

Description:
Associates metadata (number) with the row determined by the index. Returns Nothing.
Groups:
GUI Control - Controls Table

Syntax

Syntax:
control ctSetValue [index, value]
Parameters:
control: Control
index: Number
value: Number
Return Value:
Nothing

Examples

Example 1:
_control ctSetValue [0, 23];

Additional Information

See also:
ctAddRow ctAddHeader ctClear ctCurSel ctRowControls ctHeaderControls ctRowCount ctHeaderCount ctSetCurSel ctValue ctSetData ctData ctFindRowHeader ctFindHeaderRows ctRemoveRows ctRemoveHeaders ctSetRowTemplate ctSetHeaderTemplate

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