Notifications
Clear all
[Closed] Is there a getINISetting Key count limitation
Page 2 / 2
Prev
Jan 29, 2013 11:39 pm
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.
Jan 29, 2013 11:39 pm
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
Page 2 / 2
Prev