Function Library

Top  Previous  Next

DScript comes with a large number of routines for additional functionality beyond the SQL-like language, for example, to work with INI-files, the Clipboard or prompt for user input.

 

These routines are all functions, meaning that they are generally to be expected to return a value and accept zero or more parameters when called.

 

The available routines are grouped into Namespaces and can be used with their fully qualified name, eg INI.Open(...), GUI.ShowMessage(...) and so on.

 

When describing the syntax for routines, the following data types are available for input and return values.

 

string

A variable length series of characters, eg: 'test', 'my name'

char

A single character, eg: 'A', 'c'

integer

A 32 bit integer value, eg: -199843, 898932

large-integer

A 64 bit integer value, eg: 89849384938, -898329

positive-integer

A 32 bit positive integer value, eg: 0, 898932

positive-large-integer

A 64 bit positive integer value, eg: 89849384938

float

An 8 byte floating point value, eg: 40.90, -9923.0

boolean

A true or false value

datetime

A date-time, date or time value

variant

Any of the above

array

A single value that holds an indexed-by-integer-position list of variant values

variant-list

A comma separated list of variant values, not the same as an array, as this lists the values one by one, eg: 1, 'test', 4, myvariable, 'another value'

pointer

A pointer value to a previously created object, like a Dataset or Filestream instance

guid-string

An universal unique identifier string, basically a string, but formatted like this: '{958DBD2C-7D13-4B48-ABC2-C07BADC6426C}'