Sign in to follow this  
Followers 0
druiddk

Array Index issues

4 posts in this topic

Im trying to modify an array existing of 29 entries.

After deleting 21 entries using _ArrayDelete it looks like i want it to, but _ArrayMax still returns 29!

Please! Should it not decrease when using _ArrayDelete? If not, how could i force a recalculation?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use Ubound to know the real total of entries in your array.

See the AutoIt helpfile.

Edited by Jikoo

My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

I tried that already but that just return 30 (29+1).

This makes me believe that the entries I deleted using _ArrayDelete are just emptied but left there messing up the index.

Any ideas?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Normal.

Write Ubound($array)-1

Edited by Jikoo

My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

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