inov8iv Posted September 25, 2007 Share Posted September 25, 2007 (edited) GUICtrlCreateListView apparently has a limit of lines which can be put into listview. I looked at the help file and could not find the limit nor could I find how to extend the limit. I have a file with 7000 lines I want to import/edit/save. I also need help with Editing the data and saving the final product. Input File is INI and formatted Like below for 7,000+ Lines: [Parts] 2" Muffler Extension=1.59,2.59,3.09,5.09 etc..... This is the code I currently have. expandcollapse popup#include <GUIConstants.au3> #include <GuiListView.au3> $iFile= @ScriptDir & "\Test.ini" $oFile = @ScriptDir & "\Test.tmp" $i = 1 GUICreate("Price Editor", 420, 500) GUISetBkColor (0xE0FFFF) $ListView = GUICtrlCreateListView("Part Name|BP Blk|BP Chr|SP Blk|SP Chr", 8, 36, 404, 414, BitOR($LVS_SINGLESEL, $LVS_SHOWSELALWAYS, $LVS_EDITLABELS)) $button = GUICtrlCreateButton ("Exit",8, 8, 70, 20) $B_Search = GUICtrlCreateButton("Search", 88, 8, 70, 20) GUISetState() $iPut=FileOpen($iFile, 0) $oPut=FileOpen($oFile, 2) While $i <> 0 $iLine = FileReadLine($iPut) If StringInStr($iLine, "[Parts]") Then $iLine = FileReadLine($iPut) $iLine = StringReplace($iLine, "=", "|") $iLine = StringReplace($iLine, ",", "|") _GUICtrlListViewInsertItem($ListView, -1, $iLine) ;==> Changed due to MsCreatoR's suggestion now it loads the entire file;) If StringInStr($iLine, "|") Then $i = 1 Else $i = 0 EndIf WEnd _GUICtrlListViewSetColumnWidth($ListView, 0, 182) _GUICtrlListViewSetColumnWidth($ListView, 1, 50) _GUICtrlListViewSetColumnWidth($ListView, 2, 50) _GUICtrlListViewSetColumnWidth($ListView, 3, 50) _GUICtrlListViewSetColumnWidth($ListView, 4, 50) Do $msg = GUIGetMsg() Select Case $msg = $button FileClose($iFile) FileClose($oFile) Exit Case $msg = $B_Search ;Still working on this portion EndSelect Until $msg = $GUI_EVENT_CLOSE Any suggestions or comments are appreciated. Edited September 25, 2007 by inov8iv Link to comment Share on other sites More sharing options...
MrCreatoR Posted September 25, 2007 Share Posted September 25, 2007 Hi,From the help file:15. What are the current technical limits of AutoIt v3?Here are details of the current technical limits of AutoIt. Please note that some of the limits are theoretical and you may run into performance or memory related problems before you reach the actual limit.Maximum length of a single script line: 4,095Maximum string length: 2,147,483,647 charactersNumber range (floating point): 1.7E–308 to 1.7E+308 with 15-digit precisionNumber range (integers): 64-bit signed integerHexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF)Arrays: A maximum of 64 dimensions and/or a total of 16 million elementsMaximum depth of recursive function calls: 384 levelsMaximum number of variables in use at one time: No limit Maximum number of user defined functions: No limitMaximum number of GUI windows: 1024 Maximum number of GUI controls per window: 4096Each GUICtrlCreateListViewItem is a control, so when it reached the 4096 creations it stops to create... look for solution here on forum by keywords like _GUICtrlListViewInsertItem Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
inov8iv Posted September 25, 2007 Author Share Posted September 25, 2007 Well I have been searching on here and in the help file for the past 5 hours, figured I could ask after that much effort. Thank you that solved Problem #1, now any suggestions on how to EDIT / SAVE? Just point me in the right direction and I can get it from there. Link to comment Share on other sites More sharing options...
MrCreatoR Posted September 26, 2007 Share Posted September 26, 2007 any suggestions on how to EDIT / SAVE?What you mean? edit list view items? look for _GUICtrlListViewSetItemText() in the help file (under UDF section). Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team 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