The handle-definition used with
DEFINE DATA LOCAL
,
DEFINE DATA OBJECT
,
DEFINE DATA
PARAMETER
, DEFINE
DATA INDEPENDENT
and DEFINE DATA CONTEXT
has the
following syntax:
handle-name | HANDLE OF OBJECT |
CONSTANT |
init-definition | |||||||||
INIT |
||||||||||||
(array-definition)
HANDLE OF |
OBJECT |
CONSTANT |
array-init-definition | |||||||||
INIT |
This document covers the following topics:
For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.
A handle identifies a dialog element in code and is stored in handle variables. For further information, see the section NaturalX in the Programming Guide.
The HANDLE
definition in the DEFINE DATA
statement is generated automatically on the creation of a dialog element or
dialog.
After having defined a handle, you can use the handle-name in any statement to query, set or modify attribute values for the defined dialog-element-type.
1 #SAVEAS-MENUITEM HANDLE OF MENUITEM 1 #OK-BUTTON (1:10) HANDLE OF PUSHBUTTON
handle-name | The name to be assigned to the handle; the naming conventions for user-defined variables apply; see Naming Conventions for User-Defined Variables in the Using Natural documentation. |
---|---|
HANDLE OF OBJECT | Is used in conjunction with NaturalX as described in the section NaturalX in the Programming Guide. |
CONSTANT |
The variable/array is to be treated as a named constant. The constant value(s) assigned will be used each time the variable/array is referenced. The value(s) assigned cannot be modified during program execution. Notes:
|
INIT |
The variable/array is to be assigned an initial value. This value
will also be used when this variable/array is referenced in a
Note: |
init-definition | With the init-definition option, you define the initial/constant values for a variable. See Initial-Value Definition. |
array-definition | With an array-definition, you define the lower and upper bounds of dimensions in an array-definition. See Array Dimension Definition. |
array-init-definition | The array is to be assigned an initial value. This value will
also be used when this array is referenced in a RESET INITIAL statement.
|