mIRC Home    About    Download    Register    News    Help

Print Thread
#133038 16/10/05 08:34 PM
Joined: Aug 2005
Posts: 30
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2005
Posts: 30
I was just wondering, what's the limit on the amount of variables you can have, and the highest character count in a variable? The other day, it seems that mirc started randomly removing some of my variables :\

#133039 17/10/05 03:59 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
max characters in a var is around 941 but it reduces the longer your var name is, 941 is for a /set %x which means its got 8 charactes in front of the text, so its like any line maxes out at 949 to 950 characters.

number of vars allowed i beleive is unlimited, HOWEVER the script editor truncs the list at 64k i beleive and well loose any after that if u alter any in it. If u dont look in the vars section of the editor its unlimited (i think)

#133040 17/10/05 04:17 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The number of variables is limited to 64k for Global variables, and local variables are limited to the amount of ram on your system.

Note that 64k includes the name and value of each variable

#133041 17/10/05 08:40 PM
Joined: Aug 2005
Posts: 30
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2005
Posts: 30
What will happen once you pass that 940-950 limit?

#133042 17/10/05 08:46 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
The remaining data is truncated. Anything that isn't placed into the variable because of the limit being reached will be lost. To avoid that, use binvars for variables you know will be long.


Invision Support
#Invision on irc.irchighway.net
#133043 17/10/05 10:32 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
The number of variables is limited to 64k for Global variables


Pffft where did you come up with that one from, i have more than 64k in one of mine all the time?!?!?!?!


As to limited by your ram, thats an outside source of limitation so i did not place it into the mix but ill correct my statement for errors.

The number of vars allowed i believe is unlimited at least untell you run outa ram (real or virtual i dont known), there is no 64k limit.
The script editor doesnt display all vars well if u have a large number of them around 500Kb+

If u dont look in the vars section of the editor its all vars appear savede in the remote.ini perfectly finely.

#133044 17/10/05 10:55 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
That 64k limit is old, it hasn't been that way for many versions,
since 5.9 I believe. The limit was with the script editor, if you
were viewing a script (including variables) that was over
64k in the script editor, and clicked the ok button, it was
truncated at 64k.

Last edited by mIRCManiac; 17/10/05 10:58 PM.
#133045 18/10/05 12:49 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I remember that... it got annoying. smile

I'm curious if a new version of mIRC will allow reading ini files past 64k. If the variables ini file can be read past 64k, why not others? We can already write past 64k... reading could be helpful. Of course, I usually am not using INI files very much anymore, but it would still be nice. laugh


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard