hi there,
i am coming accross i weird problem
i have this structure
VB Code:
Public Structure Pack_ Dim pack() As Byte Dim comport As Integer Dim toRouter As Boolean Dim header As header_ End Structure
and declared globalyand initiated at the form_loadVB Code:
dim pack as pack_i have this functionVB Code:
pack = new pack_
VB Code:
myfunction(byval dim Wpack() as byte) pack.pack =wpack pack.pack(4) = 30 end function
for some reason, wpack(4) becomes 30 as well...
i dont get it at all...




Reply With Quote