Sign in to follow this  
Followers 0
DayaAricent

new to AOTOIT

7 posts in this topic

How to get the array length?

array size?

maximum number of elements in a array?


I LOVE MY PROFESSION[color="#008000"][/color][i][/i][size="5"][/size][font="Times New Roman"][/font]

Share this post


Link to post
Share on other sites



DayaAricent,

First, welcome to the AutoIt forums.

Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here.

Using the Search facility is also a good tip as there is a pretty good chance your question, or something like it, has been asked before. Look for the "Search" button to the right in the title bar.

------

To answer your question, look for UBound in the Help file - using the Dimension parameter will get additional information. But remember that AutoIt arrays start at element [0], so the highest element is [Ubound($array) - 1].

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

use ubound() for array size.

Maximum length of a single script line: 4,095

Maximum string length: 2,147,483,647 characters

Number range (floating point): 1.7E–308 to 1.7E+308 with 15-digit precision

Number range (integers): 64-bit signed integer

Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF)

Arrays: A maximum of 64 dimensions and/or a total of 16 million elements

Maximum depth of recursive function calls: 5100 levels

Maximum number of variables in use at one time: No limit

Maximum number of user defined functions: No limit

Maximum number of GUI windows: No limit

Maximum number of GUI controls: 65532

source: http://www.autoitscript.com/autoit3/docs/faq.htm#15


http://dev.dyonisii.com/

Share this post


Link to post
Share on other sites

Its AutoIt with a u, not AOTOIT.

>_<

Its AutoIt, not AutoIt with a u.

:(


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

@OP

You have 2 posts to date, both are identical and the first one was already answered..... Not having the best of starts are you DayaAricent?! >_<

other post:

http://www.autoitscript.com/forum/index.php?showtopic=99052

As for spelling AutoIt wrong, jeez dude its at the top of the friggin page. :(

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