Hi All, I am a big Newbie both to Tek-Tips and FoxPro so be gentle!
Right, I have FoxPro 7.0, and I am reading a string of data consisting of both numbers and ascii charecter codes, from the COMM port.
I am reading the string using the MSCOMM controll. Then I am trying to split the string up like so.
The first number is the terminal ID which is easy to get:
RFTerminalID = Left(lnTermData,1)
But then the second is an ascii code. Which should be 2 charecters long.
But I don't know how to get both chars.
As obviously the above doesn't work.
I am a previous VB programmer and would use the MID() function. Which Fox doesn't seem to have.
Any help would be great!
Thanks
Right, I have FoxPro 7.0, and I am reading a string of data consisting of both numbers and ascii charecter codes, from the COMM port.
I am reading the string using the MSCOMM controll. Then I am trying to split the string up like so.
The first number is the terminal ID which is easy to get:
RFTerminalID = Left(lnTermData,1)
But then the second is an ascii code. Which should be 2 charecters long.
But I don't know how to get both chars.
As obviously the above doesn't work.
I am a previous VB programmer and would use the MID() function. Which Fox doesn't seem to have.
Any help would be great!
Thanks