GXDN: Gurux Developer Network
InsertData Method (data, type, position, startIndex, count)
NamespacesGurux.PacketGXPacketInsertData(Object, VariantType, Int32, Int32, Int32)
Inserts new data into the packets data part.
Parameters
data (Object)
Inserted data.
type (VariantType)
Type of inserted Data.
position (Int32)
Position in bytes, in the packet data, where data is inserted.
startIndex (Int32)
count (Int32)
How many bytes are added. Set to Zero if all data is added.
Return Value
Returns an error, if data is empty, or in an unknown form.
Remarks
If the data is given in a hexadecimal string, every byte is separated with a space.
Examples
CopyVBScript
'Add new data to data part.
GXPacket1.InsertData "01 02 03 04", GX_VT_HEX_STR, 0
See Also

Assembly: Gurux.Client (Module: Gurux.Client) Version: 5.0.0.1