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
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
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'
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
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