How to reference the row being deleted?

How to reference the row being deleted?

when on delete, and in on validate, how do i get the row that is being validated to be deleted?

im using basically the same code from the auto_increment sampleapps for my applications

Student_Info_Form is just a form with a "Number" field which is hidden and stores the auto incremented number

so basically i want the numbers to update when a entry is deleted, and all the numbers greater than the number deleted are subtracted by 1, and the max value also -1 as well.

on delete
{
on validate
{
for each stu in Student_Info_Form [stu.Number > delete.Number] // this is where i dono
{
stu.Number = stu.Number - 1;
}
x = MaxValue [ID != 0];
x.highestval = (x.highestval - 1);
}
}

thanks for the help..

smiley.we