ctSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Some wiki formatting)
 
(37 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
|arg= local |Multiplayer Arguments=
|arg= local
|eff= local |Multiplayer Effects=
|eff= local


|gr1= GUI Control - Controls Table |GROUP1=
|gr1= GUI Control - Controls Table
____________________________________________________________________________________________


| Associates metadata (string) with the row determined by the index. Returns Nothing. |DESCRIPTION=
|descr= Associates metadata (string) with the row determined by the index. Returns Nothing.
____________________________________________________________________________________________


| ctrl '''ctSetData''' [index, data] |SYNTAX=
|s1= ctrl [[ctSetData]] [index, data]


|p1= ctrl: [[Control]] - The respective control |PARAMETER1=
|p1= ctrl: [[Control]] - the respective control
|p2= index: [[Number]] - The row index |PARAMETER2=
|p3= data: [[String]] - The data to set |PARAMETER3=


| [[Nothing]] |RETURNVALUE=
|p2= index: [[Number]] - the row index


____________________________________________________________________________________________
|p3= data: [[String]] - the data to set
 
|x1= <code>_control [[ctSetData]] [0, "Test"];</code> |EXAMPLE1=


____________________________________________________________________________________________
|r1= [[Nothing]]


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


|seealso= [[ctAddRow]] [[ctAddHeader]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]] [[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|LBADD]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|LBADD]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
{{GameCategory|arma3|New_Scripting_Commands_List}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Latest revision as of 22:34, 7 May 2022

Hover & click on the images for description

Description

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

Syntax

Syntax:
ctrl ctSetData [index, data]
Parameters:
ctrl: Control - the respective control
index: Number - the row index
data: String - the data to set
Return Value:
Nothing

Examples

Example 1:
_control ctSetData [0, "Test"];

Additional Information

See also:
ctAddRow ctAddHeader ctClear ctCurSel ctSetCurSel ctRowControls ctHeaderControls ctRowCount ctHeaderCount ctSetValue ctValue 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