Jump to content
Sign in to follow this  
pixartist

copy array?

Recommended Posts

pixartist

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

Share this post


Link to post
Share on other sites
UEZ

Whereto you want to copy the array?

BR,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

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

Share this post


Link to post
Share on other sites
Yashied
pixartist

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

$B = $A

that works?

Share this post


Link to post
Share on other sites
SmOke_N

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 this post


Link to post
Share on other sites
omikron48

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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.