tvSetText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=")
m (Fix bad regex effects)
Tag: Undo
Line 7: Line 7:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 14:
| [[tvSetText]] [idc, path, text] |SYNTAX=
| [[tvSetText]] [idc, path, text] |SYNTAX=


|p1= [idc, path, text]: [[Array]] |PARAMETER1=  
|p1= idc: [[Number]] |PARAMETER1=  


|p2= idc: [[Number]] |PARAMETER2=  
|p2= path: [[Array]] of [[Number]]s |PARAMETER2=  


|p3= path: [[Array]] - Array containing numbers. |PARAMETER3=
|p3= text: [[String]] |PARAMETER3=
 
|p4= text: [[String]] |PARAMETER4=


| [[Nothing]] |RETURNVALUE=  
| [[Nothing]] |RETURNVALUE=  
____________________________________________________________________________________________
____________________________________________________________________________________________
| s2= control [[tvSetText]] [path, text] |SYNTAX2=
| s2= control [[tvSetText]] [path, text] |SYNTAX2=


|p21=  control: [[Control]] |PARAMETER1=  
|p21=  control: [[Control]] |PARAMETER21=  


| p22= [path, text]: [[Array]] |PARAMETER2=
|p22= path: [[Array]] of [[Number]]s |PARAMETER22=  
|p23= path: [[Array]] - Array containing numbers. |PARAMETER3=  


|p24= text: [[String]] |PARAMETER4=
|p23= text: [[String]] |PARAMETER23=


|r2=(.*)|RETURNVALUE2=  
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[tvSetText]] [101, [0], "Test data"];</code> |EXAMPLE1=
|x1= <code>[[tvSetText]] [101, [0], "Test data"];</code> |EXAMPLE1=
Line 51: Line 46:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Revision as of 21:44, 24 September 2020

Hover & click on the images for description

Description

Description:
Sets string text to item on given path. IDC means id of parent Tree View.
Groups:
GUI Control

Syntax

Syntax:
tvSetText [idc, path, text]
Parameters:
idc: Number
path: Array of Numbers
text: String
Return Value:
Nothing

Alternative Syntax

Syntax:
control tvSetText [path, text]
Parameters:
control: Control
path: Array of Numbers
text: String
Return Value:
Nothing

Examples

Example 1:
tvSetText [101, [0], "Test data"];
Example 2:
_ctrl tvSetText [[0,0,0], "Test data"];

Additional Information

See also:
tvAddtvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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

Bottom Section