GXDN: Gurux Developer Network
AppendData Method (data, type)
NamespacesGurux.PacketGXPacketAppendData(Object, VariantType)
Appends new data to the data part of the packet.
Parameters
data (Object)
Data to be inserted.
type (VariantType)
How the inserted data should be interpreted.
Remarks
DataType parameter determines the format, in which the data is appended. If the data is given in a hexadecimal string, every byte is separated with a space. Error is returned, if appended data is empty, or in an unknown form.
Examples
CopyVBScript
'Append data as number which takes one byte.
GXPacket1.Append "10", GX_VT_BYTE
'Append data as string which takes two bytes. (One byte for each char)
GXPacket1.Append "10", GX_VT_STR
'Append data as hex string which takes two bytes.
GXPacket1.Append "10 00", GX_VT_HEX_STR
See Also

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