docs.intersystems.com
Home / Class Definition Reference / Property Keywords / Calculated


Class Definition Reference
Calculated
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Specifies that this property has no in-memory storage allocated for it when the object containing it is instantiated.
Usage
To specify that the property has no in-memory storage allocated for it, use the following syntax:
Property name As classname [ Calculated ];
Otherwise, omit this keyword or place the word Not immediately before the keyword.
Details
This keyword specifies that the property has no in-memory storage allocated for it when the object containing it is instantiated.
Use this keyword when you are defining a property that does not need any in-memory storage. There are two ways to specify a value for this property:
Subclasses inherit the Calculated keyword and cannot override it.
Default
The default value for the Calculated keyword is false.
Example
Property Age as %Integer [ Calculated ];
See Also


Previous section           Next section
View this book as PDF
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-02-15 22:51:05