mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2013
Posts: 81
I
Iire Offline OP
Babel fish
OP Offline
Babel fish
I
Joined: Aug 2013
Posts: 81
The Ns of both $ini(file.ini, N) and $ini(file.ini, section, N) seem to be limited to 9998, and any higher number will be treated as 9998.

Example 1 - /10000sections:
Code:
alias 10000sections {
  var %file someinifilebymeta.ini, %i 1
  write -c $qt(%file)
  while (%i <= 10000) {
    writeini $qt(%file) $+(section_,$base(%i, 10, 10, 5)) test test
    inc %i
  }
  echo -ga $!ini( %file , 9999 ) == $ini( %file , 9999 ) -- (should be: section_09999)
  .remove $qt(%file)
}

Produces $ini( someinifilebymeta.ini , 9999 ) == section_09998 -- (should be: section_09999)

Example 2 - /10000items:
Code:
alias 10000items {
  var %file someinifilebymeta.ini, %i 1
  write -c $qt(%file)
  while (%i <= 10000) {
    writeini $qt(%file) test $+(item_,$base(%i, 10, 10, 5)) test
    inc %i
  }
  echo -ga $!ini( %file , test , 9999 ) == $ini( %file , test , 9999 ) -- (should be: item_09999)
  .remove $qt(%file)
}

Produces $ini( someinifilebymeta.ini , test , 9999 ) == item_09998 -- (should be: item_09999)

Also, it should be noted that $ini(file.ini, 0) and $ini(file.ini, section, 0) both return the expected results.

Tested on v7.38

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks this issue has been fixed for the next version.


Link Copied to Clipboard