###Function###
GUICtrlSetData

###Description###
Modifies the data for a control.

###Syntax###
GUICtrlSetData ( controlID, data [, default] )


###Parameters###
@@ParamTable@@
controlID
	The control identifier (controlID) as returned by a <a href="..\guiref\GUICtrlCreate.htm">GUICtrlCreate...</a> function.
data
	For Combo, List, ListView, ListViewItem : itemtext separated with <a href="AutoItSetOption.htm#GUIDataSeparatorChar">Opt("GUIDataSeparatorChar",...)</a>
	For Progress : percent value
	For Slider : value
	For Group, Label, Button, Checkbox, Radio, Combo, List, Input, Edit, TabItem : text update
	For Date : date or time depending the style of the control
	For TreeViewItem: text update
	For Dummy : value.
default
	[optional]
	for Combo, List : the value that will be the default.
	for Edit, Input : if defined and not "" the "data" string is inserted not overriding the previous value at the caret point.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns 1.
Failure:	Returns 0.
	Returns -1 in case of invalid data
@@End@@


###Remarks###
For Combo or List control :
If the "data" corresponds to an already existing entry it is set as the default.
If the "data" starts with GUIDataSeparatorChar or is an empty string "" the previous list is destroyed.

For ListView, ListViewItem controls :
To update a specific column just forget about the others ie "||update" to update 3rd column.
If "update" is empty the column/subitem will be erased. For example "|" will erase the second column/subitem, "" will erase the first.


###Related###
GUICtrlCreate..., GUICtrlSet..., GUICtrlRead, GUIDataSeparatorChar (Option)


###Example###
@@IncludeExample@@
