Dear all,
I am very new to VB 6. I would like to know how I can receive data of variable length because I know that I have to set the RTheshold value. My situation is like this:
I have to types of data:
1) starts with "A" + strings of data
2) starts with "B" + Hex numbers of 2 - 512 bytes
I need to handle these two types separately after I received the whole bulk.
if I fixed the data size to be say, 100 bytes, I can set
MSComm1.RTheshold = 100
then If MSComm1.CommEvent = comEvReceive
I can do the job
but I do not know the data size. What can I do?
Very urgent! Please offer some help! Thanks alot!
Pancy
I am very new to VB 6. I would like to know how I can receive data of variable length because I know that I have to set the RTheshold value. My situation is like this:
I have to types of data:
1) starts with "A" + strings of data
2) starts with "B" + Hex numbers of 2 - 512 bytes
I need to handle these two types separately after I received the whole bulk.
if I fixed the data size to be say, 100 bytes, I can set
MSComm1.RTheshold = 100
then If MSComm1.CommEvent = comEvReceive
I can do the job
but I do not know the data size. What can I do?
Very urgent! Please offer some help! Thanks alot!
Pancy