I have a structure that looks like:
dim echo as integer
dim type as Byte
dim data as string
I am tring to send this structure in a UDP Socket but it has to be BYTE. How do I convert the integer, keep the byte and convert the string to byte into to a byte array so that the server program gets the data in the correct format.