' Copy the first 1000 elements of array a() to b()
' both arrays must be of the same type, and can't be objects
' nor variable-length strings
CopyMemory b(0), a(0), 1000 * Len(a(0))
from http://www.devx.com/vb2themax/Tip/18519