Re: MScomm control send problem.
- From: "Boki" <bokiteam@xxxxxxxxxxxxxx>
- Date: Tue, 13 Dec 2005 22:54:52 +0800
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
>> ===============================
>>
>>
>
>
.
- Follow-Ups:
- Re: MScomm control send problem.
- From: *** Grier
- Re: MScomm control send problem.
- References:
- MScomm control send problem.
- From: Boki
- Re: MScomm control send problem.
- From: David Youngblood
- MScomm control send problem.
- Prev by Date: Re: What is OOP's purpose, code reuse, bug minimisation, or what?
- Next by Date: Re: Checking an Array
- Previous by thread: Re: MScomm control send problem.
- Next by thread: Re: MScomm control send problem.
- Index(es):
Loading