On 26-Apr-07, at 10:47 AM, Don Clark wrote:
> Norman Palardy wrote:
>> How about
>>
>> Serial1.Write &h01
>> Serial1.WriteInt8 &h01
>>
>>
> Where is the WriteInt8 method documented? I looked in the language
> reference for 2007r2 and don't see it there.
I really was not very thoughtful in my reply this morning. Apologies
Reminder to self NEVER EVER WRITE CODE in an email :)
Especially when you have not used that for some time.
>> Serial1.Write &h01
>> Serial1.WriteInt8 &h01
Should read
Serial1.Write ChrB(&h01)
Serial1.Write ChrB(&h01)
You COULD write your own set of extends methods to make whatever
"write" mechanisms you want
sub WriteInt8(extends s as serial, i as Int8)
s.write ChrB(i)
end sub
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>