G
Guest
Can you define a property as type Byte array of a specific length?
I am trying to pass a byte array which is 3200 bytes in length from one form
(in which the bytes are read from a file) to another form (where the content
can be edited). I have defined a property for the editing form using the
following
Dim m_edicin(3199) As Byte
Public Property ebcdicin() As Byte
Get
edicin = m_ebcdicin
End Get
Set(ByVal Value As Byte)
m_edicin = Value
End Set
End Property
but it gives errors in the fourth and seventh lines of the type "Value of
type '1-dimensional array of Byte' cannot be converted to 'Byte'" or vice
versa.
What is the secret to make this work?
Grateful for any help.
I am trying to pass a byte array which is 3200 bytes in length from one form
(in which the bytes are read from a file) to another form (where the content
can be edited). I have defined a property for the editing form using the
following
Dim m_edicin(3199) As Byte
Public Property ebcdicin() As Byte
Get
edicin = m_ebcdicin
End Get
Set(ByVal Value As Byte)
m_edicin = Value
End Set
End Property
but it gives errors in the fourth and seventh lines of the type "Value of
type '1-dimensional array of Byte' cannot be converted to 'Byte'" or vice
versa.
What is the secret to make this work?
Grateful for any help.