Object Reference : Object View and Procedure Reference : Factor
Set the object attribute.
factor_name.setattr(attr) attr_value
Sets the attribute attr to attr_value. Note that quoting the arguments may be required. Once added to an object, the attribute may be extracted using the @attr data member.
a.setattr(revised) never
String s = a.@attr("revised")
sets the “revised” attribute in the object A to the string “never”, and extracts the attribute into the string object S.
See “Adding Custom Attributes in the Label View” and “Adding Your Own Label Attributes”.