-

Defining Namespaces for User-defined Data Types

Further Info
For a description what namespaces are, how to access elements of a namespace, nested namespaces, etc., see the topic "General Information on Namespaces".

Note
Observe the naming conventions for namespaces when defining a new namespace.

The predefined keywords NAMESPACE ... END_NAMESPACE are used to declare a namespace for a user-defined data type (ARRAY, STRUCTURE, etc.) in the data types worksheet. The namespace definition starts with the keyword NAMESPACE followed by the namespace name and ends with the keyword END_NAMESPACE as shown in the following example. The NAMESPACE keyword must follow the TYPE ... END_TYPE declaration block that is part of the namespace.

You can also nest a namespace into another namespace in order to organize your user-defined data types. Nested namespaces are created by placing the code in different subnamespaces as shown in the following example. In the example, the namespace 'NamespaceA' contains the nested namespace 'NamespaceB'.

See also the section "Nested namespaces" in the topic "Namespaces".