Notifications
Clear all

[Closed] Is there a getINISetting Key count limitation

I concluded last year that there is a per-item limit in INI (when accessing via MAXScript). I was trying to store raw struct data in an INI. Yes, I know it was a bad idea… but I gave it a try. It worked fine as long as the entry was short. But if I stored an array of objects (and that INI value balooned in size), it inevitably failed.

Not necessarily directly relevant to the original question, but perhaps related.

Yup, XML it is then!
Thanks for confirming I wasn’t going crazy.

as i remember the section name and key name are not case sensitive. so instead of using:

allLines[i] == targetString 

is better to use:

stricmp allLines[i] targetString  == 0

the cool thing about stricmp is that the function makes non case sensitive compare and can compare strings and names:


 "NAME" == "name"
 --false
 #name == "name"
 --false
 stricmp #NAME "name" == 0
 --true
 
 lo1

I also forgot to ignore empty lines.

Page 2 / 2