User Tools

Site Tools

Navigation:  Language Reference > 3 - Variable Declarations > Data Types >====== UNSIGNED (unsigned integer) ====== Previous pageReturn to chapter overviewNext page
label UNSIGNED([initial value]) [,DIM( )] [,OVER( )] [,NAME( )] [,EXTERNAL] [,DLL] [,STATIC]


UNSIGNED An unsigned integer which is a LONG.
initial value A numeric constant. If omitted, the initial value is zero, unless the AUTO attribute is present.
DIM Dimension the variable as an array.
OVER Share a memory location with another variable.
NAME Specify an alternate, “external” name for the field.
EXTERNAL Specify the variable is defined, and its memory is allocated, in an external library. Not valid within FILE, QUEUE, or GROUP declarations.
DLL Specify the variable is defined in a .DLL. This is required in addition to the EXTERNAL attribute.
STATIC Specify the variable's memory is permanently allocated.
THREAD Specify memory for the variable is allocated once for each execution thread. Also implicitly adds the STATIC attribute on Procedure Local data.
AUTO Specify the variable has no initial value.
PRIVATE Specify the variable is not visible outside the module containing the CLASS methods. Valid only in a CLASS.
PROTECTED Specify the variable is not visible outside base CLASS and derived CLASS methods. Valid only in a CLASS.

UNSIGNED declares an unsigned integer which is a LONG. This is not actually a data type but an EQUATE defined in EQUATES.CLW.

The UNSIGNED data type is most useful for prototyping Windows API calls which take a LONG (or ULONG) parameter in their 32-bit version.


Count1 UNSIGNED   !Declares a LONG

unsigned_16_32_bit_unsigned_integer_.htm.txt · Last modified: 2021/04/15 15:57 by