GXDN: Gurux Developer Network
InsertHeader Method (data, type, position, startIndex, count)
NamespacesGurux.PacketGXPacketInsertHeader(Object, VariantType, Int32, Int32, Int32)
Inserts new data into the packets header part.
Parameters
data (Object)
Inserted data.
type (VariantType)
Type of inserted Data.
position (Int32)
Position in bytes, in the packet header, where the 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 header part.
GXPacket1.InsertHeader "01 02 03 04", GX_VT_HEX_STR, 0
See Also

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