old.getFieldValue(EachField) doesn't work?

old.getFieldValue(EachField) doesn't work?

Hi Zoho,

Each time I reload my script On Validate page, old.getFieldValue(EachField) is changed to getFieldValue(EachField) (showing the current data instead of the data prior to change).

Why is this happening? I need to compare the data in each field before and after the edit:

FieldsList=getFieldNames();
ChangedFiles=List();
for each EachField in FieldsList
{
if(getFieldValue(EachField)  !=  old.getFieldValue(EachField))
{
ChangedFiles.add(EachField);
}
}



Thanks

Ravid