//modifiedField() in Table Level
public void modifiedField(fieldId _fieldId)
{
super(_fieldId);
if(fieldnum(UB_std_marks,Mark4)==_fieldId)
{
this.Average = ((this.Mark1+this.Mark2+this.Mark3+this.Mark4)/4);
if(this.Average<50)
{
this.Grade = “B(“+int2Str(this.Average)+”%)”;
}
else
{
this.Grade=”A(“+int2Str(this.Average)+”%)”;
}
}
}OR
//Modified() in control Level
//—————————-
public boolean modified()
{
boolean ret;
ret = super();
if(Stdtl_ToDate.dateValue())
{
Stdtl_Salary.allowEdit(True);
}
else
{
Stdtl_Salary.allowEdit(False);
}
return ret;
}
No comments:
Post a Comment