I've been sticking to it for a long time already...I tried to send something using MSComm1.Output but when I send an integer valued larger than 127, my microprocessor (which is the receiving side) gets a zero. Here's my code:
...
MSComm1.Output = chr(0) & stringA & chr(integerA) & "."
my data format is like this:
a null (=chr(0)), then a string of two characters, then an integer of 1 byte (0 to 255), then a dot to denote the end of transmission
it works when integerA is 0-127 but fails when I send a value larger than 127
Could anypone please help? Does it relate to the inputmode Setting of the Com Port? I used
default Inputmode
any help would be great! Thanks alot.
Pancy
...
MSComm1.Output = chr(0) & stringA & chr(integerA) & "."
my data format is like this:
a null (=chr(0)), then a string of two characters, then an integer of 1 byte (0 to 255), then a dot to denote the end of transmission
it works when integerA is 0-127 but fails when I send a value larger than 127
Could anypone please help? Does it relate to the inputmode Setting of the Com Port? I used
default Inputmode
any help would be great! Thanks alot.
Pancy