Sign in to follow this  
Followers 0
J_Y_C

Large Arrays

11 posts in this topic

Does anyone have any suggestions on how I might be able to use large arrays in AutoIt?

I was thinking of making some kind of interpreter script that you would use any time you referenced a large (say, 200 element) array, and it occurred to me that certainly some of the geniuses on this board have already dealt with such a problem.

It would greatly simplify my code if I could work with arrays bigger than 64. I was thinking of making some kind of large array UDF that you referenced whenever you wanted to use one, and would resize itself (or it's arrays of arrays) to adjust for different size lists.

Has someone on here already dealt with this? Is there a simple and obvious solution that I am not seeing?

Any comments/advice/criticism is welcome....

(and yes, I have searched the forums)

Share this post


Link to post
Share on other sites



Does anyone have any suggestions on how I might be able to use large arrays in AutoIt?

I was thinking of making some kind of interpreter script that you would use any time you referenced a large (say, 200 element) array, and it occurred to me that certainly some of the geniuses on this board have already dealt with such a problem.

It would greatly simplify my code if I could work with arrays bigger than 64. I was thinking of making some kind of large array UDF that you referenced whenever you wanted to use one, and would resize itself (or it's arrays of arrays) to adjust for different size lists.

Has someone on here already dealt with this? Is there a simple and obvious solution that I am not seeing?

Any comments/advice/criticism is welcome....

(and yes, I have searched the forums)

Bigger than 64 what? Dimensions? Working on your Grand Unified Theory script? :P

Arrays can be thousands of rows deep, what do you gain by "interpreting" them?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If you need to create an array with more than 64 dimensions ... what kind of script are you making :)

Don't confuse dimensions with elements as it seems you have.

Hallman

Edited by Hallman

Share this post


Link to post
Share on other sites

Arrays can be thousands of rows deep, what do you gain by "interpreting" them?

A dictionary? :)

[center]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.[/center]

Share this post


Link to post
Share on other sites

Does anyone have any suggestions on how I might be able to use large arrays in AutoIt?

I was thinking of making some kind of interpreter script that you would use any time you referenced a large (say, 200 element) array, and it occurred to me that certainly some of the geniuses on this board have already dealt with such a problem.

It would greatly simplify my code if I could work with arrays bigger than 64. I was thinking of making some kind of large array UDF that you referenced whenever you wanted to use one, and would resize itself (or it's arrays of arrays) to adjust for different size lists.

Has someone on here already dealt with this? Is there a simple and obvious solution that I am not seeing?

Any comments/advice/criticism is welcome....

(and yes, I have searched the forums)

If your having problems keeping stuff organized with tons of arrays you might want to try using .ini files, they're good for organizing. You might want to say what you're trying to array though... you'd probably get more help that way...


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

A dictionary? :)

I wish AutoIt had a dictionary :P

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post


Link to post
Share on other sites

If your having problems keeping stuff organized with tons of arrays you might want to try using .ini files, they're good for organizing. You might want to say what you're trying to array though... you'd probably get more help that way...

Puhleeeze! INI files are so... 90's! :)

XML files are the new black! :P


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

God, I am such a freaking dumbass. DIMENSIONS, not ELEMENTS.

Pardon me while I hide my head in the sand. I'm new to coding, so don't flame me too bad.

:)

Share this post


Link to post
Share on other sites

I confused dimensions with elements. I thought you could only have up to 64 elements in an array, and I didn't even wonder how many dimensions.

God, it makes me hurt inside when I am being this stupid. :)

So, for instance, I didn't think you could create $array[70], as I thought 64 was the limit. I totally can't believe I made such a silly mistake.

So, yes, I understand now that you can do $array[howeverBig] from $array[0][0]...64 times....

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