Skip to main content

SetIgorOption

SetIgorOption [mainKeyword,] keyword=value

SetIgorOption [mainKeyword,] keyword=?

The SetIgorOption operation makes temporary changes to Igor Pro's behavior. The behavior changes are of interest to advanced users only and last only until you end the Igor session.

The details of the syntax depend on the keyword and are documented where the alternate behaviors are described.

SetIgorOption is not compilable. To use it in a user-defined function, you need to use Execute.

In most cases the current value of a setting can be read using the keyword =? syntax.

For example, the IndependentModuleDev keyword is used to enable editing of procedure files that implement independent modules:

SetIgorOption IndependentModuleDev=?; Print V_Flag  // Query
SetIgorOption IndependentModuleDev=1 // Set

Most SetIgorOption keywords are obscure and rarely of use. Here are the some of the more commonly-used SetIgorOption keywords:

IndependentModuleDevSee SetIgorOption IndependentModuleDev=1
PoundDefineSee Conditional Compilation
GraphicsTechnologySee Graphics Technology
PanelResolutionSee SetIgorOption PanelResolution
DisableThreadSafeSee Debugging ThreadSafe Code

It is rarely necessary, but you can find the more obscure applications using Help→Search Igor Files to search for "SetIgorOption".