Question Dynamic array

yo3gwm

New member
Joined
Oct 9, 2009
Messages
4
Programming Experience
3-5
Hello

Sorry for my english. I have a dynamic are declared as global and one dynamic array in procedure , how is posible to put element from procedure array in global array

ex
Dim BufferGLOBAL() As Byte

Sub RX_UDP()
Dim msg1 As String
Try
Dim receiveBytes As [Byte]() = COMUNICATIEudp.Receive(IPPLC)
'=================== HERE
BufferGLOBAL = receivebytes
'====================HERE
SIR_PRIMIT = Encoding.ASCII.GetChars(receiveBytes)
Catch ex As Exception
msg1 = "RX" & Chr(13) & Chr(10) & ex.Message
MsgBox(msg1, MsgBoxStyle.Critical, "YO3GWM 15.09.2009")
End Try
End Sub

Thank's

Cristi Mitroi

Bucuresti Romania
 
Back
Top