Re: MScomm control send problem.



could you please advice when we want to send a single hex data?

ex: pass a byte variable through function call...

Best regards,
Boki.


"David Youngblood" <dwy@xxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:eWHEzd9$FHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
> "Boki" <bokiteam@xxxxxxxxxxxxxx> wrote...
>> These code can't work. Could you please advice ?
>> Why can't I send a single byte by:
>>
>> '''''''''''''''''''''''''''''''''''''''''
>> dim a as byte
>> a=10
>> mscomm1.output = a
>> '''''''''''''''''''''''''''''''''''''''''
>
> MSComm.Output requires a string or a byte array. No other data type can be
> sent
> without conversion to a string or byte array. Input has the same
> restrictions.
>
> David
>
>
>>
>> Best regards,
>> Boki.
>>
>>
>> Code:
>> ===============================
>> Private Sub Boki_Walk(A As Byte, B As Byte, C As Integer)
>>
>> MSComm1.Output = B
>> MSComm1.Output = CByte(data \ 256)
>> MSComm1.Output = CByte(data) '//send low byte
>>
>> End Sub
>> ===============================
>>
>>
>
>


.


Loading