Standard Types

Parent Previous Next

Standard Types.

SCRAMBLECODE has these predefined types:


Type

Description

Default

Integer

Is 32 bit (4 byte) on all platforms. Value range: -2,147,483,648 to 2,147,483,647.

0

Real

Can store an 8 byte double precision floating point value.

Value range approx.:  -1.79E+308 to +1.79E+308.

0.0

String

Is a Unicode string type. Value range: 0 to approx. 2 billion characters.

""

Boolean

Expresses either True or False.

False

Byte

Can store a single 8 bit value. Value range: 0x00 to 0xFF  (0..255).

0x00

Blob

Is a binary large object which can store a long sequence of bytes.

Value range: 0 to approx. 2 billion bytes.

Empty

Datetime

Represents a calendar time specified by a date and time.

Value range: 1/1-0001 00:00:00.000 to 31/12-9999 23:59:59.999.

Empty

Timespan

Express a duration of time from 0 00:00:00.000 to ±99999999 23:59:59.999.

Empty


The default column refers to the initial default value upon declaration:


Whenever a value of one of these standard types is stored in memory by the VM, it is actually stored in an encrypted form as described here.


The next chapters present each type in great detail.