How can a String variable be sent using the RS232 Component?
Posted: Wed Mar 14, 2007 10:44 am
I want to send a String variable via the RS232 Component,
Sending "Hello" as a predefined string works OK, but
trying to send the variable String where string = "Hello" is not accepted by the component.
I can hive off individiual characters from the string using
characterstring = mid$(string,X,1) and incrementing X.
However, I can find no way of changing characterstring into a byte variable so as to provide something that the RS232 component will accept.
Please advise.
Thanks in advance,
Mark
ps a string appears to recieve fine, as in string = string + RS232byteinput to build up a string.
Sending "Hello" as a predefined string works OK, but
trying to send the variable String where string = "Hello" is not accepted by the component.
I can hive off individiual characters from the string using
characterstring = mid$(string,X,1) and incrementing X.
However, I can find no way of changing characterstring into a byte variable so as to provide something that the RS232 component will accept.
Please advise.
Thanks in advance,
Mark
ps a string appears to recieve fine, as in string = string + RS232byteinput to build up a string.