I have this code
With SerialPort1
.Write("AT" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGF=1" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGS=" & Chr(34) & txtnumber.Text & Chr(34) & vbCrLf)
.Write(txtmessage.Text & Chr(26))
Threading.Thread.Sleep(1000)
End With
Let's say in txtmessage.Text
I'd like to put type mensagem[i].Text
with an Array list.
Example:
Private Sub menssagem(txtmessage, TextBox1, TextBox2, TextBox3, TextBox4, TextBox5, TextBox6, TextBox7, TextBox8)
Dim menssagem(8) As Integer
End Sub
In total there are 9 TextBox
that I want to be drawn to continue with the function.
Another thing, in SerialPort1
is it possible to insert an array list too? And if the SerialPort12
, say, it is unresponsive, can you give a Next to the next array list?