<div dir="ltr"><div>You did not understand the answer Lee gave to you. It does use the event, it's File_Read. In your case the read event is SComm_Read, because you named so.</div><div>Very basics of events.<br></div><div><br></div><div><br></div><div>Jussi<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 2, 2018 at 7:07 PM, PICCORO McKAY Lenz <span dir="ltr"><<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="m_1702628639624205259gmail-im">declare the event name "SComm" but don't use it at all"<br><br></span></div><span class="m_1702628639624205259gmail-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"><span class=""><br clear="all"><div><div class="m_1702628639624205259gmail_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.<wbr>com</a></font></div></div></div>
<br></span><div><div class="h5"><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>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/lan<wbr>g/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/lan<wbr>g/eventdecl</a><br>
<br>
<br>
___<br>
<span class="m_1702628639624205259HOEnZb"><font color="#888888">Lee<br>
</font></span><div class="m_1702628639624205259HOEnZb"><div class="m_1702628639624205259h5"><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></div></div>
<br><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br></blockquote></div><br></div>