UInteger

See Also: Declaring Variables, Variable Declaration Commands, Struct, Integer, BigInt, UBigInt

Purpose

Declares one or more UInteger (four byte unsigned integer) variables.

Syntax

To declare UInteger variables

UInteger {identifier} [… {identifier}]

Where

To declare array variables of type UInteger

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

Where

What It Does

The UInteger command declares UInteger variables. The UInteger type is a 4 byte unsigned integer. The valid range of this data type is 0 to 4,294,967,295.

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

Examples

Procedure DoTest

    UInteger uMyVar

 

    Move 1 To uMyVar

End_Procedure

This example declares a UInteger variable named uMyVar and initializes it.

 

UInteger[] uLightYears

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

UInteger[5] uLightYears

This example declares 1 static array variable, named uLightYears, containing 5 of elements of type UInteger.

UInteger[][3] uLightYears

This example creates a two-dimensional dynamic array variable named uLightYears, containing an undefined number of elements of type UInteger. 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