Name SetOption
Type Method
Summary Sets value of a named world option
Prototype long SetOption(BSTR OptionName, long Value);
Description Sets value of a world option. Many options are booleans (true or false). The number zero represents false (option not set) and the number one represents true (option set).

You can use GetOptionList to get a list of the names of all possible options.

Use SetAlphaOption to set alphanumeric options.
VBscript example
world.setoption "show_italic", 1
Jscript example
world.setoption ("show_italic", 1);
PerlScript example
$world->setoption ("show_italic", 1);
Returns eUnknownOption - option name not recognised
eOptionOutOfRange - option value out of range
eOK - set OK

See also ...