ctSetData: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|arma3 |= | |game1= arma3 | ||
|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 | |s1= ctrl [[ctSetData]] [index, data] | ||
|p1= ctrl: [[Control]] - | |p1= ctrl: [[Control]] - the respective control | ||
| [[ | |p2= index: [[Number]] - the row index | ||
|p3= data: [[String]] - the data to set | |||
| | |||
| [[ | |r1= [[Nothing]] | ||
|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]] | ||
[[ | }} | ||
[[ | |||
Latest revision as of 21:34, 7 May 2022
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