← servoy magazine

[Tip] Looping through records fast

  • Tips

by Harjo Kompagnie

Do you know what the fastest way of looping through records is?  

for(var i=1; i<=foundset.getSize(); i++)
{
    var record = foundset.getRecord(i);
    record.dataprovider = XXXXX; // for example: record.companyname = 'company: ' + companyname
}

This way the gui won't change and looping is done in the background. Rapido!