Calculated (Property Syntax and Keyword)
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.
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:
Define a Get (and possibly a Set) method for the property. For example, for an Age property, you could provide an AgeGet method that determines a person’s current age based on the current time and the value of their DateOfBirth property. See the chapter “Using and Overriding Property Methods” in Defining and Using Classes.
Define this property as a computed property; this uses the SqlComputed keyword and related keywords. See “Defining a Computed Property” in Defining and Using Classes.
Subclasses inherit the Calculated keyword and cannot override it.
The default value for the Calculated keyword is false.
Property Age as %Integer [ Calculated ];
“Property Definitions” in this book
“Defining and Using Literal Properties” in Defining and Using Classes
“Working with Collections” in Defining and Using Classes
“Working with Streams” in Defining and Using Classes
“Defining and Using Object-Valued Properties” in Defining and Using Classes
“Defining and Using Relationships” in Defining and Using Classes
“Introduction to Compiler Keywords” in Defining and Using Classes