Version 6.3.13 for Windows
 —  Statements  —

Syntax Overview

This document contains a complete summary of the syntax boxes used in the DEFINE DATA statement descriptions.

It provides information about the way the keywords, clauses, parameters, options and other syntax elements are to be arranged and combined in the program statement lines.


General Syntax

DEFINE DATA
   [GLOBAL USING   global-data-area   [WITH   block[.block] ../graphics/dot3.gif]]      

PARAMETER

USING parameter-data-area

 
parameter-data-definition../graphics/dot3.gif

OBJECT

USING

local-data-area

 
parameter-data-area  
data-definition../graphics/dot3.gif

LOCAL

USING

local-data-area

 
parameter-data-area  
direct-data-definition../graphics/dot3.gif

   [INDEPENDENT [AIV-data-definition ../graphics/dot3.gif]]../graphics/dot3.gif

CONTEXT

USING

local-data-area

 
parameter-data-area  
context-data-definition ../graphics/dot3.gif

END-DEFINE

Top of page

Basic Syntax Elements

The following topics are covered below:

data-definition

level

group-name [(array-definition)]

variable-definition
view-definition
redefinition
handle-definition

For more information, see Defining Local Data or Defining NaturalX Objects.

parameter-data-definition

level

group-name [(array-definition)]

redefinition
 

(format-length[/array-definition])

../graphics/cbc3.gif

 
variable-name [BY VALUE [RESULT]] [OPTIONAL]

A
U
B

[(array-definition)]

DYNAMIC
parameter-handle-definition [BY VALUE [RESULT]] [OPTIONAL]

For more information, see Defining Parameter Data.

parameter-handle-definition

handle-name   [(array-definition)]  HANDLE OF

dialog-element-type

OBJECT

For more information, see Parameter Handle Data Definition.

variable-definition

../graphics/cbo2.gif

<scalar-definition>
<array-definition>

../graphics/cbc2.gif

<scalar-definition>

variable-name

(format-length)

CONSTANT
INIT

init-definition

[emhdpm]

A
U
B

DYNAMIC

<array-definition>

variable-name

(format-length/ array-definition)

CONSTANT
INIT

array-init-definition

[emhdpm]

A
U
B

/array-definition

DYNAMIC

For more information, see Variable Definition.

view-definition

view-name VIEW [OF] ddm-name

level

ddm-field

([format-length][/array-definition])

[emhdpm]

A
U
B

[/array-definition] DYNAMIC
redefinition

For more information, see View Definition.

redefinition

REDEFINE field-name

level

rgroup

../graphics/dot3.gif
rfield (format-length [/array-definition])
FILLER nX

For more information, see Redefinition.

init-definition

<constant>

<system-variable>
FULL LENGTH <character-s>
LENGTH <character-s>

For more information, see Initial/Constant Values for Array.

array-definition

{bound[:bound]},3

For more information, see Array Dimension Definition.

array-init-definition

             

FULL LENGTH

<character-s,>
ALL LENGTH n
(

index[:index] ,3 ) <

constant

>
V system-variable,

For more information, see Initial/Constant Values for an Array.

emhdpm

([EM=value] [HD='text'] [PM=value])

For more information, see EM, HD, PM Parameters for Field/Variable.

AIV-data-definition

level

variable-definition

redefinition
handle-definition

For more information, see Defining Application-Independent Variables.

context-data-definition

level

variable-definition

redefinition
handle-definition

For more information, see Defining Context Variables for Natural RPC

Top of page