Setting lenght of Integer
Is it possbile to force a integer to be 2 bytes long?
Im currently working on a application for testing PCBs with SW. The protocol for communication is made up of hex strings. I need to send hex commands with leading zeros.
Im currently hard coding the commands as int, should I use string instead? ( I have to da a CRC on them as well)
Re: Setting lenght of Integer
If you want an integer value that uses 2 bytes, use the short datatype.
If you are working with Strings, there are formatting classes and methods that will insert leading "0"s
Can you give an example of the input data and the output you want?