Sub btnSend_Click
'AStream.Write(txtInput.Text.GetBytes("UTF8"))
If AStream.IsInitialized = False Then Return
Dim buffer() As Byte
'buffer = EditText1.Text.GetBytes("UTF8")
buffer(0) = 0x1b
buffer(1) = 0x40
buffer(2) = 0x00
'AStream.Write(buffer)
AStream.Write2(buffer,0,3)
txtInput.SelectAll
txtInput.RequestFocus
LogMessage("Me", txtInput.Text)
End Sub
I get the Error: "java.lang.ArrayIndexOutOfBound sException: length=0; index=0"
I would assume, that in both variants the array have 3-elements or?
Right now i am a little disappointed that i do not get a message from the Compiler/Editor.
When i type in the same Syntax in VS2013 i get a Message like: "buffer-Variable is used before a value is assigned"