Sign in to follow this  
Followers 0
Shadowram

Can Arrays be coppied into each other?

3 posts in this topic

Like:

Global $test_ab[10] = ["test_ab", "t", 2500, 0, 0, 0, 0, 110]

Global $test_ac[10] = $test_ab[10]

Share this post


Link to post
Share on other sites



Yes, you can also store arrays within arrays!

#include<Array.au3>

Local $aFirstArray[5] = [1, 2, 3, 4, 5]
Local $aSecondArray[5] = [1, 2, 3, 4, 5]

$aFirstArray[3] = $aSecondArray

_ArrayDisplay ($aFirstArray[3], "First Array: Element 3")

However, it does warn you in the helpfile against doing this.

Mat

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  
Followers 0