Cicode Programming Reference > Using Variables > Declaring the Variable Data Type

Declaring the Variable Data Type

You can use variables of the following data types:

INT

Integer (32 bits)

-2,147,483,648 to 2,147,483,647

REAL

Floating point (64 bits)

-3.4E38 to 3.4E38

STRING

Text string (128 bytes maximum, including null termination character)

ASCII (null terminated)

OBJECT

ActiveX control

 
QUALITY Represents the CitectSCADA quality QUAL_GOOD, QUAL_BAD, QUAL_UNCR
TIMESTAMP 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601  

If you want to specify a digital data type, use the integer type. Digital types can either be TRUE(1) or FALSE(0), as can integer types.

Note: Cicode may internally store floating point values as 64 bit to minimize rounding errors during floating point calculations.