Re: [Gambas-user] Serial I/O with byte data

2017-05-14 Thread Alexie
Following should work for you: Public Sub XXX_Read() Dim iLen As Integer Dim aData As Byte[] iLen = Lof(Last) aData = New Byte[] aData.Resize(iLen) Try aData.Read(Last, 0, iLen) End You need to get the length (lof) first, then resize array ... only then you can read it. 2017-05-14

[Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-14 Thread Glaucio Araujo
Hi, I'm having exactly the same problem here in Xubuntu 17.04 with Gambas 3.9.1 and 3.9.2(PPA). ​My system information: [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.10.0-20-generic Architecture=x86_64 Distribution=Ubuntu 17.04 Desktop=XFCE Theme=Gtk Language=pt_BR.UTF-8 Memory=3829M [L

Re: [Gambas-user] Serial I/O with byte data

2017-05-14 Thread Tobias Boege
On Sun, 14 May 2017, alexchernoff wrote: > Good day all, > > Anyone know how to read data received on serial port into an array of bytes > instead of string? > I think that's not possible. > String gets unreadable binary characters, so how can I > put them into byte[] or so? > This shouldn'

Re: [Gambas-user] Serial I/O with byte data

2017-05-14 Thread alexchernoff
Good day all, Anyone know how to read data received on serial port into an array of bytes instead of string? String gets unreadable binary characters, so how can I put them into byte[] or so? Thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-d

Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?

2017-05-14 Thread ingo
Hi Fabien, the gb.map works very well. Thank you for this. But I have questions about AddPolyLine: 1) The AddPolyLine() always draws the outline of polygon. Is it possible to have only lines with an 'open end'? I tried to set the last Mappoint to the same values as the next-to-last Mappoint. That