DWord

See Also: Declaring Variables, Variable Declaration Commands, Struct

Purpose

Declares one or more DWord variables.

Syntax

To declare DWord variables

DWord {identifier} […{identifier}] 

Where

To declare array variables of type DWord

DWord{dimension-list} {identifier} […{identifier}]

Where

What It Does

The DWord command declares DWord variables. The DataFlex DWord type is an alias for UInteger.

Multiple variables may be declared on one command line, with their names separated from each other by spaces.

DataFlex DWord types are typically used to declare variables for storing Windows Registry information (to be read from or written to DWord Registry values) or for interfacing with Windows API calls using the External_Function command.

Examples

Procedure Test

    DWord dwRegistryValue

End_Procedure

This example declares one variable of type DWord, named dwRegistryValue.

 

DWord[] dwRegistryValues

This example declares 1 dynamic array variable, named dwRegistryValues, containing an undefined number of elements of type DWord.

DWord[5] dwRegistryValues

This example declares 1 static array variable, named dwRegistryValues, containing 5 of elements of type DWord.

DWord[][3] dwRegistryValues

This example creates a two-dimensional dynamic array variable named dwRegistryValues, containing an undefined number of elements of type DWord. Conceptually, this represents a rectangular array with an undefined number of rows, each of 3 columns.

You can declare dynamic multi-dimensional arrays where all dimensions are dynamic; these are called jagged arrays.

 

Notes