Re: Assigning to array error
ExBytes is not a dynamic Byte array.
Re: Assigning to array error
Also, you need to declare array ExBytes as byte:
Dim ExBytes() As Byte
In your code it is defined as Long.
Re: Assigning to array error
Quote:
Originally Posted by
Bonnie West
ExBytes is not a dynamic Byte array.
Does this mean because it is defined as Static
Re: Assigning to array error
How do I set a Static array to all zeros?
Re: Assigning to array error
Static means something else entirely. I think you mean fixed-length array.
To zero a fixed-length array you either need a loop or an API call, e.g. RtlZeroMemory routine which of course contains a loop just as when you circuitously build a String, translate it to ANSI, and assign it to a dynamic array (at least 3 loops there).
There is no magic.
Re: Assigning to array error
Quote:
Originally Posted by
dilettante
I believe the Erase statement can do it as well. ;)
Re: Assigning to array error
Quote:
Originally Posted by
Bonnie West
I believe the
Erase statement can do it as well. ;)
Good catch, I should have looked it up instead of mis-remembering that it didn't work with fixed arrays.