get function

Syntax

get PropertyName
   StatementList 
end-get

Description

Use the get language construct when defining properties in an application class that are implemented by methods rather than an instance variable. All properties within an application class must be uniquely named.

Parameters

Parameter Description

PropertyName

Specify the name of the property that you're implementing.

StatementList

Returns the value of the property. In other words, this is a method which has no parameters and must return the value of the property.

Returns

Depends on the assignment within StatementList

Example

get FruitCount
   Return &MyFruit.Number();
end-get;