Use static type-name syntax
- Last Updated: January 16, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
Syntax
You can call a static method or access a static variable data member, property, or class event using static type-name syntax, as follows:
|
Element descriptions for this syntax diagram follow:
- class-type-name
- The type name of the class where the static member you are referencing
is defined. This can be the fully qualified class type or the class name
with the presence of an appropriate
USINGstatement. For more information on class type names, see Define and reference object type names. - method-name ( [parameters] )
- The name of a static method (method-name) that is accessible and defined by class-type-name, followed by any required parameter list (parameters). In all other respects, you call a static method exactly like an instance method. For more information on calling methods and specifying parameter lists, see the class-based method call entry in ABL Reference.
- data-element
- The name of a static variable data member or static property that is accessible and defined by class-type-name. In all other respects, you access a static variable data member or property exactly like an instance data member or property. For more information, see the and the class-based data member access and property access entries in ABL Reference.
- event
- The name of a static class event that is accessible and defined
by class-type-name.
In all other respects, you access a static class event exactly like
an instance event, in order to publish it or subscribe event handlers
to it. For more information, see the and the entries for the
Publish( ),Subscribe( ), andUnsubscribe( )event methods in ABL Reference.
Use of this syntax for referencing these static members is required or optional, depending on the context where you access them and on other features of static members.