Jump to content

Recommended Posts

Posted

Hi

I have this code

CODE

$vv=FileOpen("c:\ine\icor2008\lista.txt",0)

while 1

$line=FileReadLine($vv)

if $line="" then

ExitLoop

EndIf

$aa=GUICtrlCreateListViewItem ( $line, $ListView1 )

WEnd

FileClose($vv)

Where from a text line I create items to a listview ($Listview1). The problem is that I have 8000 lines in the file but only 4000 (aprox.) are added to the listview

The listview is defined before as defined next

$ListView1 = GUICtrlCreateListView("area_am|aloj|agrega|split|rot|tipoam|telef|nome|data|A5|A6|A7|hidine", 24, 16, 553, 265, BitOR($LVS_REPORT,$LVS_SINGLESEL,$LVS_SHOWSELALWAYS,$LVS_AUTOARRANGE), BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT,$LVS_EX_HEADERDRAGDROP ))

Posted

AutoIt beta 3.2.11.2

- Changed: Maximum controls in a GUI window 4093 -> 65532.

So if you recompile your script with new beta you will ne able create about 65500 listview items by GUICtrlCreateListViewItem()

Note:

If you use _GUICtrlListView_AddItem() no such max. items limitation exists no matter of AutoIt version but it's slower.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...