Stompa Posted March 25, 2007 Posted March 25, 2007 I can initialize an array using: DIM $myarray[4]=[10,20,30,40] But is there any way that I can explicitly avoid having to specify the size of the array, but let that be determined by the amount of initialization data supplied? (for example in C you'd just use: int myarray[]={10,20,30,40}) Thanks Stompa
jvanegmond Posted March 25, 2007 Posted March 25, 2007 Not really.. but _ArrayCreate might help.. github.com/jvanegmond
xcal Posted March 25, 2007 Posted March 25, 2007 You can create your array with Dim/Local/Global $array[1]. You can resize it with Redim, or use _arrayadd or _arraydelete. How To Ask Questions The Smart Way
Stompa Posted March 25, 2007 Author Posted March 25, 2007 Thanks folks, you've just confirmed what I'd thought. Stompa
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