<div dir="ltr"><div>umm if you opend the attached i send in first mail noted that i do as you cited with file example, so then seems i not explained very well, i taking about tobias said : "<span class="gmail-im">declare the event name "SComm" but  don't use it at all"<br><br></span></div><span class="gmail-im">so if your example citation does not use the event name so what it's the point, i taking about usage of event name!<br></span></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
<br><div class="gmail_quote">2018-08-02 11:25 GMT-04:00 T Lee Davidson <span dir="ltr"><<a href="mailto:t.lee.davidson@gmail.com" target="_blank">t.lee.davidson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/01/2018 01:21 PM, PICCORO McKAY Lenz wrote:<br>
>     next issue that I can spot is that you declare the event name "SComm" but<br>
>     don't use it at all to intercept events. No wonder you don't get any.<br>
> <br>
</span>> *please that parti, i need more clear ideas of them, but the english language are a barrier<br>
> *<br>
> *a kind of more "example for dummies" can be in that point?*<br>
<br>
There is a simple example at <a href="http://gambaswiki.org/wiki/lang/open" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/<wbr>lang/open</a>:<br>
<br>
[code]<br>
' Watching a serial port<br>
<br>
Dim hFile As File<br>
<br>
hFile = Open "/dev/ttyS0" For Read Write Watch<br>
<br>
...<br>
<br>
Public Sub File_Read()<br>
<br>
  Dim iByte As Byte<br>
<br>
  Read #hFile, iByte<br>
  Print "Got one byte: "; iByte<br>
<br>
End<br>
[/code]<br>
<br>
It does not give the hFile object a custom name as you do with: SComm = New SerialPort As "SComm"<br>
<br>
So, event management uses "File" as its name, and its Read event is handled with the File_Read() subroutine.<br>
<br>
See also: <a href="http://gambaswiki.org/wiki/lang/eventdecl" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/<wbr>lang/eventdecl</a><br>
<br>
<br>
___<br>
<span class="HOEnZb"><font color="#888888">Lee<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>