hi there,
i am coming accross i weird problem
i have this structure
VB Code:
  1. Public Structure Pack_
  2.         Dim pack() As Byte
  3.         Dim comport As Integer
  4.         Dim toRouter As Boolean
  5.         Dim header As header_
  6.     End Structure

and declared globaly
VB Code:
  1. dim pack as pack_
and initiated at the form_load
VB Code:
  1. pack = new pack_
i have this function
VB Code:
  1. myfunction(byval dim Wpack() as byte)
  2.  
  3. pack.pack =wpack
  4.  
  5. pack.pack(4) = 30
  6. end function

for some reason, wpack(4) becomes 30 as well...
i dont get it at all...