Fast Copy Array in Array VB6.0 -
i have array want copy in two-dimensional (like jagged) code :
dim cb(1000000) double dim buffer(50, 1000000) double = 1 1000000 cb(i) = cint(int((50 * rnd()) + 1)) next
i can use copy cb buffer. code :
for = 1 10 j = 1 1000000 buffer(i, j) = cb(j) next next
but want know there faster method this? in vb.net or c# use list. there thing in vb6.0?
thanks.
maybe don't copy array @ all?
function accessmyarray(arr, i, j) ' todo: add range check using lbound() / ubound() accessmyarray = arr(i * 1024 + j) end function
Comments
Post a Comment