mIRC Homepage
Posted By: TroyBoy increase mirc's variable length limitation - 24/11/04 12:22 PM
Mirc's variable length limitation is 940 characters.

//set %temp $str(1,940)
(no error)

//set %temp $str(1,941)
* /set: line too long

//set %temp $str(1,950)
* String too long: $str

I also ran into this limitation with the length of a hash entry.

Is there any logic in this size limitation?
Can we PLEASE make it HEAPS longer?
One likely reason for that limitation is it roughly correlates to the maximum message length for IRC. It's no good having a 20,000 character variable and trying to /msg someone with it because it simply won't work. Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language.
The direct reason for the limitation is the winapi function wsprintf() that mirc uses all over, that only supports up to 1024 chars. There is an equivalent function to wsprintf() that supports more chars, but I don't know how easily it can replace wsprintf() in mirc.
Quote:
One likely reason for that limitation is it roughly correlates to the maximum message length for IRC. It's no good having a 20,000 character variable and trying to /msg someone with it because it simply won't work. Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language.


Actually, the max length of a line that can be sent in mIRC is about 440 characters.

qwerty seems to be onto the reason. the other 84 characters might be used for the length of the variable name.
There may be a way to increase the length, but it could be a limitation that I might have to put up with.
Oh yeah it's 512 bytes, I was thinking it was 1024. Oh well.
"Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language."

That post is so flawed.
Why's that?
Because mIRC is a multipurpose program.
Quote:
Because mIRC is a multipurpose program.


where does it say that?

think it's clearly an IRC client with a few added functionalities to increase the fun for users...

but it's no where near intended as a multi purpose program, and neither is the mIRC scripting language strong enough to program any decent programs in...
"where does it say that?"
Where does it say it isn't?

"but it's no where near intended as a multi purpose program, and neither is the mIRC scripting language strong enough to program any decent programs in..."
I disagree
Posted By: Sat Re: increase mirc's variable length limitation - 26/11/04 10:46 AM
Quote:
Where does it say it isn't?

Start mIRC, press F1, click on Introduction, and read the first line under the header.
It's an IRC client equipped with scripting capability!
Please explain more than just being able to add scripting fuctions.
It's an IRC client that can do more than connect to an IRC server, making it a multipurpose program.
Posted By: DaveC Re: increase mirc's variable length limitation - 30/11/04 10:22 PM
mirc can write scripts, you know like "romeo and juliet" etc
I wonder if anyone important actually reads these posts.
ie, someone who can actually do something with these suggestions.
Someone who walks the walk, and not just talk the talk!
Khaled regularly reads feature suggestions and bug reports, it's rare he replies though. Khaled is the only one who develops mIRC 'physically'.

Regards,
© mIRC Discussion Forums