BlueScreen Posted March 14, 2004 Posted March 14, 2004 (edited) Guys, How to make a copy of an array without erasing the original? Dim $x[3] $x[0]=0 $x[1]=1 $x[2]=2 $x=$y Should I do it the 'Hard' way? (copy the values with a 'For' loop?) Edited March 14, 2004 by BlueScreen
Developers Jos Posted March 14, 2004 Developers Posted March 14, 2004 (edited) this works ( just swap the $x=$y to $y=$x ): Dim $x[3] $x[0]=0 $x[1]=1 $x[2]=2 $y=$x Edited March 14, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now