assign array
assign array
API Declarations
Using API function 'CopyMemory' to assign array to another array.
Rate assign array
(2(2 Vote))
Dim sour(1 To 100) As Long, dest(1 To 100) As Long, x(1 To 50) As Long, Length as long
' copy whole array sour to dest
Length=100*4
Call CopyMemory(dest(1), sour(1), Length)
' copy elements from sour(50) to sour(99) to array x
Length=50*4
Call CopyMemory(x(1), sour(50), length)
assign array Comments
No comments yet — be the first to post one!
Post a Comment