DelphiWebScript

Built-In Functions

Homepage
DWS
Built-In Functions
 

SetArray (var void, integer, integer, integer open), (var array all, integer);
Declaration 0: Assigns an array to arg1 with type arg2 and dimensions [0..arg2 -1, 0..arg3 - 1, ...]
Declaration 1: Redimensions the array in param1 to the new dimensions [0..arg2 - 1, ...]. You can only change the size of the first dimension.

Exit;
Terminates the execution of the script immediately.

Break;
Ends a for, while or repeat loop.

Continue;
Continues with the next loop of a for, while or repeat loop.

CopyRight : string;
Returns a string with a copyright message

Inc (var mult), (var mult, mult);
Increments arg1 by 1 or if arg2 is given by arg2.

Dec (var mult), (var mult, mult);
Decrements arg1 by 1 or if arg2 is given by arg2.

Length (string), (array all);
Returns the length of the string or the array in arg1.

Send (all open);
SendLn (all open);
Converts all arguments to a string an add them to the output string of the script. SendLn adds also a linefeed.

SendFile(string);
Writes the content of file arg1 to the output string. The filename is relative to IncludePath.

LoadPlugin(string);
Loads the plugin file in arg1. The file name is relative to PluginPath.

UnloadPlugin(string);
Unloads the plugin in arg1. The filename is relative to PluginPath.