Ebenezer Posted April 14, 2006 Share Posted April 14, 2006 Hi, I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating. I tried to get the entries into an array via the IniReadSection("Itemdatabase.ini", "Items") command. However I only get 1146 of the entries returned. Here's the code: #include <Array.au3> Dim $Ergebnis[1] $vArray = IniReadSection("Itemdatabase.ini", "Items") For $i = 1 To $vArray[0][0] $vTemp = _ArraySearch($Ergebnis, $vArray[$i][1]) ConsoleWrite($i & " = " & $vArray[$i][0] & @LF) If $vTemp = -1 Then _ArrayAdd($Ergebnis, $vArray[$i][1]) EndIf Next _ArrayDisplay($Ergebnis, "") Any ideas what I'm doing wrong ? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 14, 2006 Developers Share Posted April 14, 2006 Hi, I'm trying to use an ini file as kind of replacement database. It's currently at ca 5600 entries before inflating. I tried to get the entries into an array via the IniReadSection("Itemdatabase.ini", "Items") command. However I only get 1146 of the entries returned. Any ideas what I'm doing wrong ? Think the max supported size of a section is 32766 characters. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Ebenezer Posted April 14, 2006 Author Share Posted April 14, 2006 Thanks for the hint. Found some interesting information here: www.delphicorner.f9.co.uk/articles/wapi7.htm Seems to be a windows buffer limitation. Any idea how to circumvent this in autoit? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 14, 2006 Developers Share Posted April 14, 2006 Thanks for the hint.Found some interesting information here:www.delphicorner.f9.co.uk/articles/wapi7.htmSeems to be a windows buffer limitation. Any idea how to circumvent this in autoit?Open the file and read the section yourself ...... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Ebenezer Posted April 14, 2006 Author Share Posted April 14, 2006 The simplest things... Thanks for the nudge in the right direction. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now