Hi,
I have a database and some records on it.
I have created a indexes called "CreatedDate"
I want to load its record so I have using this code:
m_client.bigDB.loadRange(m_strFlashesTable,"CreatedDate",[new Date("2010,10,01")],new Date("2010,10,01"),new Date("2010,10,29"),100,HandleGetFlashesByDateSuccess);
and
m_client.bigDB.loadRange(m_strFlashesTable,"CreatedDate",null,null,null,5,HandleGetFlashesByDateSuccess);
The callback function is :
protected function HandleGetFlashesByDateSuccess(objArr: Array):void{
var lengh: int = objArr.length;
Alert.show("Get Success");
}
But lengh is always zero. I don't know why this code can't load objects.
Is something wrong with my code ?