SELF

SELF.element

element The name of a field in the result type RECORD structure of a TRANSFORM structure.

The SELF keyword is used in TRANSFORM structures to indicate a field in the output structure. It should not be used on the right hand side of any attribute definition.

Example:

Ages := RECORD
        INTEGER8 Age; //a field named "Age"
END;

TodaysYear := 2001;
Ages req_output(person l) := TRANSFORM
        SELF.Age := TodaysYear - l.birthdate[1..4];
END;

See Also: TRANSFORM Structure