View Single Post
  #5  
Old 12-28-2011, 12:54 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Gunderak View Post
PHP Code:
with(Text_List){
  for(
temp.indx 0temp.indx this.data.size(); temp.indx ++){
    
addrow(indxdata[indx]);
  }

It's a bad practise looping through an array which can not change its value mid loop while using .size(), especially if it's a large array such as can be expected from an SQLite table, this can create a lot of overhead.

Last edited by ffcmike; 12-28-2011 at 01:05 PM..
Reply With Quote