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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/10/04 05:54
Read: times


 
#68268 - RE: display wrong number
Responding to: ???'s previous message
stanly try these:
private Sub mscomm1_oncomm()
dim sdata() as byte
dim re_data() as byte
dim i as integer
if mscomm1.commevent=comevreveive then
sdata=mscomm1.input
end if
re_data=sdata
cls
for i = 0 to ubound(re_data)
print re_data(i)
next i
end sub
ps. select the mode in binary mode can read the value from #00h to #0ffh
to read the data from buffer you may need the
ubound & lbound to verify the data string from bigging to end , check your vb help
i do used these to recieved data that sended from mcu
it works find , please try again see what happen
have fun



List of 24 messages in thread
TopicAuthorDate
8051 -> mscomm1.input            01/01/70 00:00      
   RE: 8051 -> mscomm1.input            01/01/70 00:00      
   RE: 8051 -> mscomm1.input            01/01/70 00:00      
   RE: 8051 -> mscomm1.input            01/01/70 00:00      
      RE: 8051 -> mscomm1.input            01/01/70 00:00      
   RE: 8051 -> mscomm1.input            01/01/70 00:00      
   display wrong number            01/01/70 00:00      
      RE: display wrong number            01/01/70 00:00      
         RE: display wrong number            01/01/70 00:00      
            RE: display wrong number            01/01/70 00:00      
               so note for your vb            01/01/70 00:00      
               Still not working~..........            01/01/70 00:00      
                  RE: Still not working~..........            01/01/70 00:00      
                     This line:            01/01/70 00:00      
                     RE: Still not working~..........            01/01/70 00:00      
                        Okay~! but you email address is...?            01/01/70 00:00      
                           my email            01/01/70 00:00      
      RE: display wrong number            01/01/70 00:00      
         RE: display wrong number            01/01/70 00:00      
      RE: display wrong number            01/01/70 00:00      
   RE: 8051 -> mscomm1.input            01/01/70 00:00      
      RE: 8051 -> mscomm1.input            01/01/70 00:00      
   Whole new one            01/01/70 00:00      
   Cannot use on_comm            01/01/70 00:00      

Back to Subject List