Writing a String to the serial Port is no problem.
vTest = "Testoutput";
But then I wanted to write a Byte to the serial Port:
vTest2 = 0x05;
I got a Compiler-Error;
Operator = is ambiguous (Operator = ist mehrdeutig).
I tried to use a cast operator:
vTest3 = (BYTE) 0x05;
There is no compiler-error.
But at Runtime i got the Message from
MSComm "wrong Propertyvalue"
I have also tried to use the original VARIANT
Datatype, but without positive result.
vTest4.vt = VT_UI1;
vTest4.bVal = 0x05;
I got the same Runtime Error as the one
Is there someone who can help me please?
It looks like you're new here. If you want to get involved, click one of these buttons!