Jump to content

What's The Limitation To ... ?


Recommended Posts

I have some questions I would like to have answered.

What's the maximum filesize of a textfile that can be loaded?

How many lines is the limit for a textfile that can be loaded?

And how many characters per line is the limit?

How many characters (as a string) can a variable have?

I mean: how many characters (as a string) can you assign to a variable?

Thank you very much.

PS. There's no General or Questions forum, that's why I posted here.

Edited by SlimShady
Link to comment
Share on other sites

What's the maximum filesize of a textfile that can be loaded?

A variable can be at most 2,147,483,647 characters

How many lines is the limit for a textfile that can be loaded?

Lines are just a special char (@lf ,@cr or @crlf) so it do not count diffently. Just every end of line count as a char (or 2 if you are using the DOS @crlf )

And how many characters per line is the limit?

See above.

How many characters (as a string) can a variable have?

2,147,483,647

I mean: how many characters (as a string) can you assign to a variable?

2,147,483,647

Btw, in the FAQ of the help file there is a question "What are the current technical limits of AutoIt v3?" that may answer you more.

Edited by ezzetabi
Link to comment
Share on other sites

  • 4 months later...
  • 4 weeks later...

1. Might depend on system resources, but I got to 262 GUI windows in one script...

2. Approx 4094 controls. Highest index is 4096, and the lowest is currently 3.

And it appears that each GUI can contain the max number of controls.....

;COUNT CONTROLS

GuiCreate("CountMaxControls")
Dim $i = 1
$firstID = GuiCtrlCreateButton("foo", 10, 10)
While GuiCtrlCreateButton("foo", 10, 10, 100, 100)
   $i = $i + 1
   ToolTip($i, 0, 0)
Wend
MsgBox(4096,"", $i - $firstID + 1)


; COUNT WINDOWS
Dim $i = 0
While Not @error 
   $i = $i + 1
   ToolTip($i, 0, 0)
   GuiCreate("CountMaxControls")
Wend
MsgBox(4096,"", $i)
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...