0
我在表格視圖中填充數據庫colums和diaplying。我得到CursorIndexOutOfBoundsError
。android.database.CursorIndexOutOfBoundsException:請求的索引14,大小爲14
這裏是我的代碼:
while(rows.isValidRow())
{
date=rows.fieldByName('Date');
displaydate(date);
Ti.API.info(';'+date);
while(date==rows.fieldByName('Date'))
{
intime=rows.fieldByName('StartTime');
outtime=rows.fieldByName('EndTime');
taskname=rows.fieldByName('TaskName');
note=rows.fieldByName('Note');
displayreport(intime,outtime,'',taskname,note);
Ti.API.info(';'+intime+';'+outtime+';'+taskname+';'+note);
rows.next();
}
rows.next();
}
rows.close();