I am using flex builder 2. I have a cursor containing a number of records...I created buttons that will move to the first or last record of the cursor, depending on which one you click. The code I am using is:
public function moveFirst():void
{
while (! myCursor.beforeFirst)
{
myCursor.movePrevious();
}
GetDetails();
}
public function moveLast():void
{
while (! myCursor.afterLast)
{
myCursor.moveNext();
}
GetDetails();
}
The problem is that the cursor seems to go one past the last record or one before the first record...so when it calls the GetDetails function it is trying to pass in a Null value. I need it to stop at the first or last active record...not the beforeFirst or afterLast.
Start Free Trial