Types

Any Abstract Base Type

TSimple Strings, Numbers and Booleans

TCollection Collections - used with .. and | operators and for loops

TNamedCollection

TSet Sets are collections with no duplicate elements

TDateTime Date and Time support

TModule Reference to metadata for a module

TType Reference to metadata for a type

TTypes


Variables

ErrMsg : String For exception Handling


Global Functions

NamedCollectionConstruct: TNamedCollection;

Collect([any number] : Any): TCollection;

iif(condition : Any, if-true : Any, if-false : Any): Any;

Random(Limit : Integer): Integer; Generate a random number. The series is highly random (seeded by a GUID, and uses ISAAC algorithm - http://burtleburtle.net/bob/)

EOL: String;

Chr(Value : Integer): String;

Min(Value1 : Integer, Value2 : Integer): Integer;

Max(Value1 : Integer, Value2 : Integer): Integer;

MaxInt: Integer;

Nil: Any;

EmptySet: TSet;

RaiseError(Message : String);

Abort;

Now: TDateTime;

GetTickCount: Integer;

ExecTime: Integer; (Milliseconds)

Beep(Frequency : Integer, Length : Integer);

VarCount: Integer;

VarName(Index : Integer): String;

VarValue(Index : Integer): ANY;

Object: TTypes;

FileToString(FileName : String): String;

DeleteFile(FileName : String);

True: Boolean;

False: Boolean;

GUID: String; Create a GUID in the form of 99E2DCF9-612E-4074-AA69-09CB08B5C37A

GUIDAsOid(GUID : String): String; Render a GUID as an OID. Oid will be in the form 2.25.D where D is the decimal representation of the GUID. The GUIDAsOIDOld exists because prior to version 2.00-046, there was a bug in the GUID to OID conversion arithmetic. This old version retains the bug in order to allow continuity for GUIDs already converted to OIDs using this method.

GUIDAsOidOld(GUID : String): String; Render a GUID as an OID. Oid will be in the form 2.25.D where D is the decimal representation of the GUID.

WriteLog(content : String); Log Content in the stndard log file

DumpVars(Point : String); Dump all the variables to the log file


© Kestral Computing P/L 2000 - 2003. HL7Connect v2.00-063 generated on 30-Nov 2015.
Keywords: System (KScript Module)