Procedure ReadSettingsMode(mode: String, val: String) : String
This function sets a Parser Engine Mode with the name of mode with the value of val
Note that val should be a string, and either "TRUE" or "FALSE".
This is because Parser Engine Modes were originally only set inside scripts, but it was felt that this function should be exported so that modes could be set manually.
Ideally this procedure would be updated to accept a boolean, however doing so would break several existing applications.