Re: Listview and time...
- Posted by Euman <euman at bellsouth.net> Apr 04, 2001
- 507 views
Hello all, Thanks Jonas your dynamic listview is faster but not as fast as I'd care to have it be. "Dont get me wrong Jonas method is really fast, I just have several thousand records to list" Could someone check this code to make it faster.. sequence data, subdata integer item, subitem atom LVITEM, VOID for ix = length(data) to 1 by -1 do item += 1 subitem = 0 for xi = 1 to length(data[ix]) do subdata = data[ix][xi] subitem += 1 LV_ITEM = struct_LVITEM(lvitem_MASK, item-1, subitem-1, 0, 0, subdata, 0, 0) if subitem = 1 then VOID = sendMessage( LV_id, LVM_INSERTITEM, 0, LV_ITEM ) else VOID = sendMessage( LV_id, LVM_SETITEMTEXT, item-1, LV_ITEM ) end if release_mem(LV_ITEM) end for -- FASTER THAN > -- lParams[ix] = addLVItem( LV_id, 0, data[ix]) end for My guess is (and I'll keep working on it) that I'll need to get away from the win32libs mem functions and poke in each subdata myself only to achieve nominal speed increase.. Any Suggestions? euman at bellsouth.net Euman