ctSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Some wiki formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3 |= Game
|game1= arma3
|1.70
|version1= 1.70
|arg= local
|arg= local
|eff= local
|eff= local
Line 8: Line 8:
|gr1= GUI Control - Controls Table
|gr1= GUI Control - Controls Table


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


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


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


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


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


| [[ctAddRow]], [[ctAddHeader]], [[ctClear]], [[ctCurSel]], [[ctSetCurSel]], [[ctRowControls]], [[ctHeaderControls]], [[ctRowCount]], [[ctHeaderCount]], [[ctSetValue]], [[ctValue]], [[ctData]], [[ctFindRowHeader]], [[ctFindHeaderRows]], [[ctRemoveRows]], [[ctRemoveHeaders]], [[ctSetRowTemplate]], [[ctSetHeaderTemplate]]
|r1= [[Nothing]]
}}


[[Category:Scripting Commands|LBADD]]
|x1= <sqf>_control ctSetData [0, "Test"];</sqf>
[[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}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
|seealso= [[ctAddRow]] [[ctAddHeader]] [[ctClear]] [[ctCurSel]] [[ctSetCurSel]] [[ctRowControls]] [[ctHeaderControls]] [[ctRowCount]] [[ctHeaderCount]] [[ctSetValue]] [[ctValue]] [[ctData]] [[ctFindRowHeader]] [[ctFindHeaderRows]] [[ctRemoveRows]] [[ctRemoveHeaders]] [[ctSetRowTemplate]] [[ctSetHeaderTemplate]]
 
}}
<!-- 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