The following options can be set within the client framework either via the
dependent on how you are calling REX.
A filename (or directory name where the default filename will be tried) or filenames (if you are using the REX executor - calling via the CLI or Web not using the API) for REX to execute.
The default filename to try when a directory is requested (the default default is index.rex).
The size of blocks to load REX files as, defaults to 4096 bytes (4kB).
In quiet mode the REX framework won't output any syntax or other execution errors found with files. It defaults to off - errors will be output.
The Base directory. This defaults to blank and is set by the first file loaded (to the directory of the file) unless already set by the user. For example once you request a file at http://codeserver/rex/ then this directory is the default and any files then requested without a leading http(s): or file: are requested from this directory.
- Load HTTP Environment
Only available with the Web executor (or via a method call from the API) this option loads the standard HTTP environment variables into the REX Environment stack for easy use by REX code.
The following options are available only if you are using the REX executor (the CLI or Web client). If you are using the framework directly via the API then your code will handle these instead.
With mute on the executor won't output any errors processing the REX files (default is off - errors are shown).
With continue on the executor will continue to execute any more REX files in it's filename list even if one has encountered an error. With it off (the default) then execution of following files will cease once an error is encountered.
Please note: this does not affect the behaviour of files called from within REX code using the ExecFile() method - just ones listed for the executor to execute one after the next
The Debug option when enabled (default off) has the executor output lots of debug information such as the initial state, each file executed etc.