###Function###
DllStructSetData
###Description###
Sets the data in of an element in the struct.

###Syntax###
DllStructSetData ( Struct, Element, value [, index ] )


###Parameters###
@@ParamTable@@
Struct
	The struct returned by DllStructCreate.
Element
	Which element of the struct you want to access, starting at 1.
value
	The new value to place in the struct.
index
	If the element is an array, you need to specify which index to set, otherwise it sets index 1.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	value, which is read back from the struct.
Failure:	0.
@Error:	0 = No Error.
	1 = Struct not a correct struct returned by DllStructCreate.
	2 = Element value out of range.
	3 = index would be outside of the struct.
	4 = Element data type is unknown
	5 = index < 0.
@@End@@


###Remarks###
When the element is char[n], byte[n] or ubyte[n] the data can be a string otherwise it has to be a number.

###Related###
DllCall, DllStructCreate, DllStructGetData


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