ctSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ |arma3dev |= Game |1.68|= Game Version |arg= local |= Argume...")
 
No edit summary
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Control]] '''ctSetData''' [[Number]] |= Syntax
| [[Control]] '''ctSetData''' [[[Number]], [[String]]] |= Syntax


|p1= control: [[Control]] |= Parameter 1
|p1= control: [[Control]] |= Parameter 1
|p2= index: [[Number]] |= Parameter 2
|p2= index: [[Number]] |= Parameter 2
|p2= index: [[String]] |= Parameter 3
|p2= data: [[String]] |= Parameter 3


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_control [[ctSetData]] "Test";</code> |= Example 1
|x1= <code>_control [[ctSetData]] [0, "Test"];</code> |= Example 1


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 12:06, 21 February 2017

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.68|1.68]]
Hover & click on the images for description

Description

Description:
Associates metadata (string) with the row determined by the index. Returns Nothing.
Groups:
Uncategorised

Syntax

Syntax:
Control ctSetData [[[Number]], String]
Parameters:
control: Control
data: String
Return Value:
Nothing

Examples

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

Additional Information

See also:
ctAddRowctAddHeaderctClearctCurSelctSetCurSelctRowControlsctHeaderControlsctRowCountctHeaderCountctSetValuectValuectDatactFindRowHeaderctFindHeaderRowsctRemoveRowsctRemoveHeaderssetRowTemplatesetHeaderTemplate

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

[[Category:Introduced with arma3dev version 1.68]][[ Category: arma3dev: New Scripting Commands | CTSETDATA]][[ Category: arma3dev: Scripting Commands | CTSETDATA]]

Notes

Bottom Section