Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/10/09 10:49
Read: times


 
#166991 - serial port in vb
i want to send and recive number of bytes to an 8055 .
i use VB6 for pc programing. i want to send and revice number of butes that may contain 0x00 or NULL . so i can not use string .
i write this codes

dim a(0) as BYTE
a(0)= MYBYTE
mycomport.output=a

my data sent succesfuly but when i want to recive a data by this commands i get an error

dim data(3) as byte
data(0)=mycomport.input
i searched in google for example codes but i found only such codes:
dim strr as string
strr=mycomport.input
but i can not use this codes because my data is not string (may be 00 that is end of string)


List of 9 messages in thread
TopicAuthorDate
serial port in vb            01/01/70 00:00      
   In VB            01/01/70 00:00      
      exmple pls            01/01/70 00:00      
         Rule #1 in Serial - Always Test Tx 1st            01/01/70 00:00      
            Use 2 PC's to test comm's            01/01/70 00:00      
         As I described...            01/01/70 00:00      
            thanks. i solve my problem            01/01/70 00:00      
         Guidelines            01/01/70 00:00      
      In Theory            01/01/70 00:00      

Back to Subject List