Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying data between arrays

Status
Not open for further replies.

5ilver5aracen

Programmer
Oct 24, 2004
32
0
0
GB
Hi. I'm not sure what the best way is to do the following. I need to copy the contents of a one dimensional array into the 2nd dimension of a 2 dimensional array.

So array1(0) needs to be copied into array2(0,0).

Does anyone know an easy way to do this without using a for next. Many thanks in advance
 
What's the aversion to using a for loop? It would probably be the most straightforward way of doing it.

If you really must avoid a for loop, the copy memory api function may do the trick. I would advise you to search this forum and/or the VB 5&6 forum for "copy memory" api (or maybe it's "copymem", I forget).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top