File: cdatatype.sru
Size: 1599
Date: Mon, 07 Apr 2008 21:31:23 +0200
$PBExportHeader$cdatatype.sru
$PBExportComments$Native Data Type Constants
forward
global type cdatatype from nonvisualobject
end type
end forward

global type cdatatype from nonvisualobject
end type
global cdatatype cdatatype

type variables
//data types
CONSTANT string ANY = "any"
CONSTANT string BLOB = "blob"
CONSTANT string BOOLEAN = "boolean"
CONSTANT string CHAR = "char"
CONSTANT string CHARACTER = "character"
CONSTANT string DATE = "date"
CONSTANT string DATETIME = "datetime"
CONSTANT string DEC = "dec"
CONSTANT string DECIMAL = "decimal"
CONSTANT string DOUBLE = "double"
CONSTANT string INT = "int"
CONSTANT string INTEGER = "integer"
CONSTANT string LONG = "long"
CONSTANT string LONGLONG = "longlong"
CONSTANT string NUMBER = "number"
CONSTANT string REAL = "real"
CONSTANT string STRING = "string"
CONSTANT string TIME = "time"
CONSTANT string UINT = "uint"
CONSTANT string UNSIGNEDINT = "unsignedint"
CONSTANT string UNSIGNEDINTEGER = "unsignedinteger"
CONSTANT string ULONG = "ulong"
CONSTANT string UNSIGNEDLONG = "unsignedlong"

//defaults
//string
//CONSTANT string STRING_EMPTY = ""
//int
CONSTANT int INT_ZERO = 0
CONSTANT int INT_MIN = -32768
CONSTANT int INT_MAX = 32767
//date
CONSTANT date DATE_MIN = 1000-01-01
CONSTANT date DATE_MAX = 3000-12-31
//time
CONSTANT time TIME_MIN = 00:00:00
CONSTANT time TIME_MAX = 23:59:59.99
end variables

on cdatatype.create
call super::create
TriggerEvent( this, "constructor" )
end on

on cdatatype.destroy
TriggerEvent( this, "destructor" )
call super::destroy
end on