# copy array?

## Recommended Posts

Hi, how can i copy a 2 dimensional array as fast as possible ?

##### Share on other sites

Whereto you want to copy the array?

BR,

UEZ

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

##### Share on other sites

Dim \$A[5] = [0, 1, 2, 3, 4]

\$B = \$A

that works?

##### Share on other sites

that works?

Doesn't it? ( see how silly a question sounds when the person asking it didn't bother to test it to begin with? )

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

##### Share on other sites

That kind of assignment actually creates a copy of the array and not just passes a pointer to it?

##### Share on other sites

That kind of assignment actually creates a copy of the array and not just passes a pointer to it?

Did you do a \$C = \$B, \$C[0] = "x" to do a test to see if it's a pointer passed. If it were an actual pointer, then \$B[0] would equal \$C[0].

For that type of thing you need to look at functions and ByRef.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

## Create an account

Register a new account

×

• Wiki

• Back

• Git