Sub Globals
'Declare the global variables here.
Dim IP(0) As String
Dim Secret(0) As Byte
Dim TempArray([COLOR="Red"]1024[/COLOR]) As Byte
DateFormat("DD/MM/YYYY")
End Sub
...
Sub TimerWFD_Tick 'Wait for Data
If Client.DataAvailable=True Then
[COLOR="red"] count = Stream.ReadBytes(TempArray(),1024)
Dim Secret(count) As Byte
ArrayCopy(TempArray(), 0, count, Secret(), 0)[/COLOR]
TempArray()=Crypto.Decrypt("Christopher",Secret())
TextBox1.Text=TextBox1.Text&BitWise.BytesToString(TempArray(), 0, ArrayLen(TempArray())) & CRLF
End If
End Sub