SizeOf

Size = SizeOf ( Datatype )

Return the memory used for storing a specific datatype.

Datatype can be one of the following constant:

Datatype Constant
Boolean gb.Boolean
Byte gb.Byte
Short gb.Short
Integer gb.Integer
Long gb.Long
Single gb.Single
Float gb.Float
Date gb.Date
String gb.String
Variant gb.Variant
Object gb.Object
Pointer gb.Pointer
Function gb.Function
Class gb.Class

See also