I have a class called CMDS. Inside that class I have a lot of variables defined ex:
In my main program I receive network data. One of the byte returned descibes the CMD 5 or 6. It sends the byte 5 or 6. How can I then take that 5 and know it is CMDS.UP ?
I need to be able to take the string "UP" and know that it is 5 as a byte if that makes it any clearer....
B4X:
Dim UP As Byte = 5
Dim DOWN As Byte = 6
In my main program I receive network data. One of the byte returned descibes the CMD 5 or 6. It sends the byte 5 or 6. How can I then take that 5 and know it is CMDS.UP ?
I need to be able to take the string "UP" and know that it is 5 as a byte if that makes it any clearer....
Last edited: